MBrimmer
MBrimmer
CDCloudflare Developers
Created by MBrimmer on 1/24/2024 in #pages-help
Pages custom domain with workers using custom subdomain.
No description
11 replies
CDCloudflare Developers
Created by MBrimmer on 9/12/2023 in #workers-help
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?
3 replies