Deploy Worker Route
A 3-step recipe with Cloudflare. We can help you get access.
Recipe · 3 steps
Deploy Worker Route
with Cloudflare
Create a Worker, attach a route in a zone, and list the routes.
- Create a Worker in the account with the supplied name and entry module.
- Map the supplied URL pattern in the zone to the new Worker.
- List the zone's Worker routes to confirm the new binding is present.
What you'll need to have ready
- accountId: The unique identifier of the Cloudflare account.
- zoneId: The unique identifier of the zone the route belongs to.
- workerName: The name of the Worker to create.
- mainModule: The entry point module for the Worker.
- routePattern: The URL pattern that should invoke the Worker (e.g. example.com/api/*).
For your developer
Arazzo workflow cloudflare:deploy-worker-route, 3 operations: createWorker → createRoute → listRoutes. Specs on APIs.io.