ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข3y agoโ€ข
2 replies
Matthew

Worker custom domain routes

I'm having trouble setting my route via wrangler.toml
[env.development]
route = { pattern = "https://development-api.example.com/trpc-auth*", zone_name = "example.com", custom_domain = true }
[env.development]
route = { pattern = "https://development-api.example.com/trpc-auth*", zone_name = "example.com", custom_domain = true }

I get this error
Cannot use "https://development-api.example.com/trpc-auth*" as a Custom Domain; wildcard operators (*) are not allowed
Cannot use "https://development-api.example.com/trpc-auth*" as a Custom Domain; wildcard operators (*) are not allowed

But then when I go set the route in the console. I can set it and it works as expected. But this is very tedious to do for all my workers. Is my configuration wrong?
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Astro worker custom domain
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2mo ago
BUG REPORT: WORKER CUSTOM DOMAIN
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3mo ago
Cross-account Worker Custom Domain
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
10mo ago
Custom domain worker DNS record
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago