Worker custom route redirects back to original *.w...
# workers-help
i
I have a worker that I would like to use a custom route instead of the original
zone.worker.dev
. I've followed the docs and I have the custom route added, but the custom route just redirects back to the original
zone.worker.dev
route. How do I prevent this? Here is my wrangler.toml files:
Copy code
workers_dev = false
route = "sub.customroute.com/*"
s
That sounds like an issue with your code - could you share it?
i
Would this be a code issue or a configuration issue in the dashboard?
s
A code issue
There's no settings that would redirect people to workers.dev routes
i
So in the dashboard I'm seeing this:

https://cdn.discordapp.com/attachments/1107861271447085056/1108102744574804008/image.png

I can't delete the worker.dev route and if I disable it, it breaks the re-route as well
I can't share the entire code base, but are you looking for anything specific like a hard coded re-route?
s
It's definitely not something in the dashboard is what I can say
There's likely a redirect somewhere - but you've not really given any specific information so it's hard to debug
i
Do you see anything wrong in the picture I provided?
s
That's not the code - so no
i
Alright, I'll provide more info in a couple hours once I have access to my PC. Thanks for your help