atm it seems wrangler does not remove

atm it seems wrangler does not remove routes from a previous deployment when i remove them from the config toml. will this be added some time soon?
3 Replies
petebd
petebd4mo ago
Interesting discussion. This is similar to secrets handling. I thought the situation is currently the opposite: we remove routes and replace with what is in the Wrangler config. Hence the following feature request: https://github.com/cloudflare/workers-sdk/issues/2082
GitHub
🚀 Feature Request: Add a keep_routes configuration option · Iss...
Describe the solution An undocumented breaking change between wrangler 1 and wrangler 2 caused a global outage for us. Apparently in wrangler 2, routes are destructive. I saw in the docs how wrangl...
petebd
petebd4mo ago
But from looking down that issue, it seems that if you have workers.dev disabled and no routes defined then we do not touch the currently deployed routes.
bene2591
bene2591OP4mo ago
we get a warning with the message: The following routes were already associated with this worker and have not been deleted: .... after we removed the routes and deploy to prod

Did you find this page helpful?