feat: support extending the user configuration#7250
Closed
petebacondarwin wants to merge 5 commits intomainfrom
Closed
feat: support extending the user configuration#7250petebacondarwin wants to merge 5 commits intomainfrom
petebacondarwin wants to merge 5 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: c1022d6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11826008691/npm-package-wrangler-7250You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7250/npm-package-wrangler-7250Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11826008691/npm-package-wrangler-7250 dev path/to/script.jsAdditional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11826008691/npm-package-create-cloudflare-7250 --no-auto-updatenpm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11826008691/npm-package-cloudflare-kv-asset-handler-7250npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11826008691/npm-package-miniflare-7250npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11826008691/npm-package-cloudflare-pages-shared-7250npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11826008691/npm-package-cloudflare-vitest-pool-workers-7250npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11826008691/npm-package-cloudflare-workers-editor-shared-7250npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11826008691/npm-package-cloudflare-workers-shared-7250npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11826008691/npm-package-cloudflare-workflows-shared-7250Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
b7415b9 to
11b9706
Compare
e3d9015 to
c1022d6
Compare
Contributor
Author
|
Closing as we are not taking this approach. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #DEVDASH-330
This feature is described in an internal doc: MINI-SPEC:Allow 3rd party build tools to generate Worker code and configuration
The main goal here is to enable tools to generate a partial configuration file that is merged into the user configuration when Wrangler commands are run.
The file must be written to
./.wrangler/config/extra.json, where the path is relative to the project path, which is the directory containing the wrangler.toml or the current working directory if there is no wrangler.toml.The format of the file is a JSON object whose properties are the inheritable and non-inheritable options described in the Wrangler configuration documentation. Notably it cannot contain the "top level" configuration properties.
The contents of the file will be merged into the configuration of the currently selected environment before being used in all Wrangler commands.
The user does not need to manually specify that this merging should happen. It is done automatically when the file is found.