Rename a worker

I have a worker created using Wrangler and it is up and running on CloudFlare serving requests. I'm wondering what would it happens if I rename the worker name in the TOML configuration file. will the worker be recreated from scratch traffic shifted transparently to it? Will this renaming have impact on the traffic?
1 Reply
DaniFoldi
DaniFoldi7mo ago
Just renaming it in the wrangler config will create a new worker, and leave everything untouched with the old one. If you have routes set up, they will complain that you can't have the same rule applied to two workers. You can rename your worker in the dash, and change the name in TOML, and you should have a 0-downtime worker renaming complete
Want results from more Discord servers?
Add your server