Custom Domain for production env not working
I have a domain managed by CF fully. I have a local wrangler.toml that defines two environments, stage and production, like this:
I deploy staging with:
And everything works. I can access my worker on
I deploy production similarly:
But cannot access the worker in any way. DNS just doesn't resolve
Note, in the second screenshot, it shows the workers.dev domain
as disabled. This is how wrangler deploy creates it. If I enable it, then I can access it on that domain (workers.dev), but still not on my own domain.
I deploy staging with:
wrangler deploy -e stage And everything works. I can access my worker on
api.stage.example.comI deploy production similarly:
wrangler deploy -e productionBut cannot access the worker in any way. DNS just doesn't resolve
Note, in the second screenshot, it shows the workers.dev domain
api-production.REDACTED.workers.dev as disabled. This is how wrangler deploy creates it. If I enable it, then I can access it on that domain (workers.dev), but still not on my own domain.

