workers.api.error.route_not_allowed_on_subdomain

We have a worker that redirects some paths to a newer codebase. We've been adding those paths manually in the Cloudflare UI, but we'd like to save those paths in wrangler.toml. I've added them like: routes = [ { pattern = "www.example.com/ko/lists/", zone_name = "example.com"}, ... { pattern = "www.example.com/lists/", zone_name = "example.com"} ] When we run wrangler deploy, we see this error message: workers.api.error.route_not_allowed_on_subdomain [code: 10038] Any ideas?
1 Reply
bz_008
bz_00811mo ago
I used to encounter this error too, my solution is using subdomains instead of paths.
Want results from more Discord servers?
Add your server