Rotate Worker Route
A 3-step recipe with Cloudflare. We can help you get access.
Recipe · 3 steps
Rotate Worker Route
with Cloudflare
Create, update, and delete a Worker route in a single lifecycle.
- Create a route mapping the initial pattern to the Worker script.
- Update the route to use the replacement URL pattern.
- Delete the route now that the update is complete.
What you'll need to have ready
- zoneId: The unique identifier of the zone.
- routePattern: The initial URL pattern that should invoke the Worker.
- script: The name of the Worker script the route maps to.
- newRoutePattern: The replacement URL pattern applied during the update.
For your developer
Arazzo workflow cloudflare:rotate-worker-route, 3 operations: createRoute → updateRoute → deleteRoute. Specs on APIs.io.