-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: support extending the user configuration #7250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
|
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
|
Closing as we are not taking this approach. |
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.