I am trying to add a worker to my websites (with Cloudflare DNS). However, nothing happens when I add the route.
The worker’s job is the default worker.js that returns the “Hello, world!” text. The worker can be accessed via the worker URL:
https://notion.hello6300.workers.dev/ backtick example``. But not my custom route. Here are some settings:
The strange thing is the route only works if I add the www. prefix to my website when I enter it in the search bar.
I tried to delete my website from Cloudflare and add it again so the DNS can be reloaded, but it always accesses my host’s default page instead of routing to the worker.
Can someone have a look? It took me 2 days, but I don’t know what I am missing.