A record name for worker

I have a very simple worker that renders a static HTML page:

https://sidestep.smcllc.workers.dev/

I have sidestepstudios.com registered with Cloudflare and dns and SSL is set up. I have a CNAME that is an alias of https://sidestep.smcllc.workers.dev/ and so www.sidestepstudios.com works, but sidestepstudios.com cannot resolve until I put an A NAME record in.

What should I put as the A NAME record?

1 Like

192.0.2.1 or any other IP starting with 192.0.2. See Deprecated - Using page rules to perform redirects

Just make sure it’s set to an Orange Cloud and your worker route covers the full [sub]domain.

6 Likes

Thank you. This works great. It’s up and running! Cloudflare workers are awesome.

This initially worked, but now I get error 522. Did something change in the way workers resolve?

This is undocumented magic and it also doesn’t work. This seems like the most common use case for a website (using a real domain) and there’s no way to do it with Cloudflare Workers? Really?

It can seem confusing, but I have 3 different websites up through Workers just fine. I use an A record with whatever domain my site is, say example.com and point it to 1.2.3.4 making sure they proxy status is set to proxied.