Skip to content

Conversation

@ksawaneh
Copy link

Describe your change...

When deploying with routes, Wrangler previously queried the Zones API during successful deployments to try to detect route conflicts.

This PR defers that work until the bulk routes update fails, reducing unnecessary API calls and deploy latency. When a conflict is detected, Wrangler surfaces a clearer error that points to the dashboard and lists the conflicting worker(s) + route patterns.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: this is an internal deploy-path optimization + improved error message.

A picture of a cute animal (not mandatory, but encouraged)

(=^..^=)

Test evidence:

  • pnpm exec cross-env NODE_OPTIONS="$(node scripts/node-options-for-tests.js)" vitest run src/__tests__/deploy.test.ts (from packages/wrangler)
  • pnpm --filter wrangler check:type
  • pnpm --filter wrangler check:lint

Changeset:

  • Added a patch changeset for wrangler.

@ksawaneh ksawaneh requested a review from a team as a code owner January 14, 2026 18:11
@changeset-bot
Copy link

changeset-bot bot commented Jan 14, 2026

🦋 Changeset detected

Latest commit: f2a8206

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant