Workers DNS Host

Hi I’m new to workers and looking at them for a project I’m working on.

I’ve got a domain registered and setup in cloud flare, I would like my worker to be on a specific host

eg. worker.somedomain.com

I’ve created a worker using the serverless plugin and added the route to be worker.somedomain.com/* but obviously there is no worker host setup in my DNS, where would I point the A/CNAME record to?!

I’m a bit confused about this and the documentation seems to cover everything except this.

Any help would be great.

1 Like

Workers work in front of your route.
You just have to set up a dns A or CNAME for your subdomain pointing anywhere, it can point to your domain A record.
Don’t forget to add :orange: on the subdomain record.

ok thank you, I get it and have it working now.

Thanks

I am running into a similar issue. @adaptive, if you could have a look at Pointing subdomain to worker - route question that would be very helpful. Thank you!