Skip to content

Do not warn user when using a redirected config that came from a config with multiple environments#11848

Merged
petebacondarwin merged 5 commits intomainfrom
pbd/wrangler/redirected-config-env-check
Jan 10, 2026
Merged

Do not warn user when using a redirected config that came from a config with multiple environments#11848
petebacondarwin merged 5 commits intomainfrom
pbd/wrangler/redirected-config-env-check

Conversation

@petebacondarwin
Copy link
Copy Markdown
Contributor

This reverts these lines https://github.com/cloudflare/workers-sdk/pull/10706/files#diff-c5b22ef21f285ccf53ba4a990d6fba5e40050aee0dbe5a0b6737852164771d06L174-L182 which were added as a refactor but cause the warning to be emitted incorrectly.


  • Tests
    • Tests included/updated
    • Tests not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: bug fix

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jan 9, 2026

🦋 Changeset detected

Latest commit: cde4e65

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

@claude
Copy link
Copy Markdown
Contributor

claude bot commented Jan 9, 2026

Claude finished @petebacondarwin's task —— View job


Changeset Review

  • Read changeset guidelines
  • Review changeset file
  • Validate version type, changelog quality, and markdown formatting
  • Complete review

✅ All changesets look good

The changeset .changeset/social-dogs-sip.md is well-formatted:

  • Version type: Correctly marked as patch (bug fix)
  • Changelog quality: Clear title and detailed description explaining the issue and the fix
  • Markdown headers: No h1/h2/h3 headers present

export default {
async fetch(request, env) {
return new Response("Generated: " + env.generated ?? false);
return new Response("Generated: " + (env.generated ?? false));
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an unrelated minor fix to the worker code of this fixture

expect(output.stdout).toContain(
` - Deploy configuration file: ".wrangler/deploy/config.json"`
);
expect(output.stderr).toMatchInlineSnapshot(`""`);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the key check that fails without the fix in this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Jan 9, 2026

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@11848

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@11848

miniflare

npm i https://pkg.pr.new/miniflare@11848

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@11848

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@11848

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@11848

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@11848

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@11848

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@11848

wrangler

npm i https://pkg.pr.new/wrangler@11848

commit: cde4e65

@petebacondarwin petebacondarwin marked this pull request as ready for review January 9, 2026 13:50
@petebacondarwin petebacondarwin requested a review from a team as a code owner January 9, 2026 13:50
@petebacondarwin petebacondarwin added the wrangler Relating to the Wrangler CLI tool label Jan 9, 2026
@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Jan 9, 2026
@petebacondarwin petebacondarwin force-pushed the pbd/wrangler/redirected-config-env-check branch from a3494ea to 2877382 Compare January 10, 2026 14:12
@petebacondarwin petebacondarwin merged commit 0eb973d into main Jan 10, 2026
35 checks passed
@petebacondarwin petebacondarwin deleted the pbd/wrangler/redirected-config-env-check branch January 10, 2026 17:53
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wrangler Relating to the Wrangler CLI tool

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants