Wrangler deploy overwrite current Workers Routes

If I have Worker routes configured via the API or Dashboard, will they be deleted when I deploy? My wrangler.toml has other route configured.
1 Reply
TK
TK2w ago
Yes, your wrangler file is treated as a source of truth and will override your remote settings if they are different (to a degree, there are some things there if you link by git like the worker name that we allow to differ, but that's an implementation detail). How did you end up in this state, if you don't mind me asking? What have you modified that you now need to apply locally and how do you expect to do it?

Did you find this page helpful?