Worker routing issue

Hi I'm having an issue with adding a worker route to my worker. I add the route ai.filyys.dev/*, I added this code into my wrangler config, yet when I try to go to ai.filyys.dev I get a DNS_PROBE_FINISHED_NXDOMAIN?
"routes": [
{
"pattern": "ai.filyys.dev/*",
"zone_id": "****",
},
],
"routes": [
{
"pattern": "ai.filyys.dev/*",
"zone_id": "****",
},
],
Solution:
Routes don't add dns records. You could switch to Custom Domains which do add dns records https://developers.cloudflare.com/workers/configuration/routing/custom-domains/#set-up-a-custom-domain-in-your-wrangler-configuration-file, or add AAAA ai.filyys.dev 100:: Proxied as a record. 100:: is IPv6 Discard, the idea being it'll match your route or go nowhere.
Jump to solution
5 Replies
Solution
Chaika
Chaika2d ago
Routes don't add dns records. You could switch to Custom Domains which do add dns records https://developers.cloudflare.com/workers/configuration/routing/custom-domains/#set-up-a-custom-domain-in-your-wrangler-configuration-file, or add AAAA ai.filyys.dev 100:: Proxied as a record. 100:: is IPv6 Discard, the idea being it'll match your route or go nowhere.
filyys
filyysOP2d ago
Okay, I tried adding the DNS record, it's still not working. I'm guessing I need to wait a little for it? If it doesn't work, I'll use the custom domains in that case
Chaika
Chaika2d ago
dns propogation is slow, dns is heavily cached espec since you tried to visit it
Chaika
Chaika2d ago
it half works for me
No description
filyys
filyysOP2d ago
Oh yeah, seems like something happened. First time using OpenAPI for workers so I wouldn't be shocked Anyway, thank you a ton for the help, I'd never figure that out with the DNS records

Did you find this page helpful?