Hey ,
i am trying to build a swap mechanism. 1 domain, 2 workers - staging and production.
so a deploy process would be
- shipping my worker script into 1 worker - let’s name it “staging”.
- smoke test by pinging this worker and check it’s availability.
- switching the route of the domain to this staging worker.
- change the previous production worker name to “staging” and the staging name to “production”
can’t find a better way of doing it, neither an API of cloudflare i can use to rename the worker