[wrangler] Condense repeated environment config warnings#13848
[wrangler] Condense repeated environment config warnings#13848
Conversation
🦋 Changeset detectedLatest commit: 257f677 The changes in this PR will be included in the next version bump. 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 |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
✅ All changesets look good |
|
Everything looks correct. The changes are well-structured and all tests pass. Let me do a final summary of the review: Summary of changes:
The logic is correct, tests pass, and there are no issues I can identify. The changeset is properly scoped to LGTM |
|
|
||
| - "env.staging" environment configuration | ||
| - The following vars exist at the top level, but not on "env.staging.vars". | ||
| This is not what you probably want, since "vars" configuration is not inherited by environments. |
There was a problem hiding this comment.
"This is probably not what you want" is maybe a bit more idiomatic?
| ); | ||
|
|
||
| experimental(diagnostics, rawEnv, "unsafe"); | ||
| if (topLevelEnv === undefined || rawConfig?.unsafe === undefined) { |
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
Condense repeated Wrangler environment configuration warnings.
This updates config validation so repeated missing
varsanddefineentries are summarised in one warning with a list of missing keys. It also avoids emitting the experimentalunsafewarning twice whenunsafeappears at both the top level and in the active environment.A picture of a cute animal (not mandatory, but encouraged)