Error adding Custom Domain to Cloudflare Worker

I was able to publish my react app to Cloudflare workers.

I tried to add a custom domain to my worker but received the following message after 10 minutes:

This page is currently offline. However, because the site uses Cloudflare’s Always Online™ technology you can continue to surf a snapshot of the site. We will keep checking in the background and, as soon as the site comes back, you will automatically be served the live version. Always Online™ is powered by Cloudflare | Hide this Alert

I am not sure if I should continue to wait or if I have missed some steps.

Steps taken

  1. Successfully published react app to cloudflare workers using
  2. I created a CNAME record in the DNS menu item
  3. I entered my Github repo name and then the url for my cloudflare worker (without the https)
  4. I navigated to the Workers menu item in Cloudflare.
  5. For Route I entered my custom domain.
  6. For Worker I selected the worker for my app.

Sounds like you had the right idea but likely just did something a little wrong. The recommended way is adding an A or AAAA with or 100:: respectively. Then your route should just cover that subdomain and path.
So, it should look like this:

Then you can access my Worker at

So if you want to access your Worker on the worker subdomain, you should make an A or AAAA like in my image with worker100::
Then the route* with your Worker

(Also, seems like you may like Pages here -

1 Like

I just tried it again and it is working! I guess I just needed to wait a bit longer.

Thanks for your suggestions, Walsh :smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.