tsndr / cloudflare-worker-router

A super lightweight router (1.0K) with middleware support and ZERO dependencies for Cloudflare Workers.
MIT License
227 stars 30 forks source link

Not working with custom domain #15

Closed noman-land closed 2 years ago

noman-land commented 2 years ago

I'm sure I'm doing something wrong with the config but when I test this with my workers.dev domain everything works flawlessly, however when I try to use the domain I have connected, the router returns all 404s.

I know the request arrives at the worker since I see the call in the logs, on the custom domain, but the router doesn't seem to recognize the route for some reason.

tsndr commented 2 years ago

This router doesn't even care about the domain, so this has to be some kind of misconfiguration in your cloudflare dashboard, maybe you forgot to set the DNS records. With the information you gave here I can only guess.