Closed vladinator1000 closed 1 day ago
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.
+1
Not sure exactly what your use case is, but it might be useful to look into Versions & Deployments https://developers.cloudflare.com/workers/configuration/versions-and-deployments/
If this doesn't help, file an issue in the Workers-SDK since this would require a new wrangler command https://github.com/cloudflare/workers-sdk/issues
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