You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✘ [ERROR] A request to the Cloudflare API (/accounts/***/workers/scripts/my-api-production/routes) failed.
workers.api.error.duplicate_route [code: 10020]
When I comment out the route in my wrangler.toml I get
✘ [ERROR] Can't deploy a worker to routes that are assigned to another worker.
"my-api" is already assigned to routes:
- mydomain.com
Unassign other workers from the routes you want to deploy to, and then try again.
Visit https://dash.cloudflare.com/***/workers/overview to unassign a worker from a route.
We use a single wrangler.toml to manage ~20 or so workers as separate envs.
We run into this when we want to move a route from worker env A to worker env B. Would love if we could allow overwriting, instead of the 3 PR dance we do today where we add another route with lower precedence to worker B, remove the route in A, and then add the original route to B and remove the temp route.
When I publish my worker I get this error
When I comment out the
route
in mywrangler.toml
I getThe only way I found to make it actually deploy was to go to
https://dash.cloudflare.com/myAccountId/mySiteDomain/workers
and manually remove the route before each deployment.
Is there a way to have this automatically work? I don't want to manually do this every time.
Versions:
wrangler-action: v3.4.1
wrangler: v3.30.1
Here's my workflow file:
wrangler.toml
The text was updated successfully, but these errors were encountered: