Spencer Knisely
CDCloudflare Developers
•Created by Spencer Knisely on 12/25/2024 in #workers-help
Redirect Worker only works on localhost
Hey, I decided to do a chrismas day hobby project. I wanted to set up a simple domain redirect service to try and replace my paid redirect SaaS. Never done it before, but ChatGPT said it wasn't too hard.
I have the whole thing (Wrangler, VSCode, Git integration) working and it performs perfectly on localhost.
I can't seem to get it to work for the source domain/route that I want. I was getting 1000 errors for a while, then I started getting DNS_PROBE_FINISHED_NXDOMAIN errors. I don't know if my problem now is propegation related (I've been tinkering around with DNS files for a few hours) or if I just am not on the right track at all.
I don't have any kind of origin server for this domain. I don't want to do anything with it but redirects. So do I need an A record pointing to a Cloudflare range? Do I do a CNAME instead? Do I point the A record at the registrar?
Stumped.
2 replies