cloudflare-docs icon indicating copy to clipboard operation
cloudflare-docs copied to clipboard

Update workers routes validity

Open aaronadamsCA opened this issue 6 months ago • 0 comments

Example URL(s)

https://developers.cloudflare.com/workers/configuration/routing/routes/#validity

Actual Behavior

The docs clearly state that a route pattern must include the zone name:

https://github.com/cloudflare/cloudflare-docs/blob/b9e1d40d3260bf3fa9d3bd627cc968277878ab4c/src/content/docs/workers/configuration/routing/routes.mdx?plain=1#L133-L135

Expected Behavior

Cloudflare for SaaS has long recommended a "*/*" route pattern:

https://github.com/cloudflare/cloudflare-docs/blob/b9e1d40d3260bf3fa9d3bd627cc968277878ab4c/src/content/docs/cloudflare-for-platforms/cloudflare-for-saas/start/advanced-settings/worker-as-origin.mdx#L23-L28

This pattern doesn't include the zone name, but it works great! So I'm guessing the workers routes doc is just outdated.

Additional information

No response

aaronadamsCA avatar Apr 10 '25 08:04 aaronadamsCA