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
wrangler deploy -e stage
And everything works. I can access my worker on
api.stage.example.com
I deploy production similarly:
wrangler deploy -e production
But 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.1 Reply
If I enable it, then I can access it on that domain (workers.dev), but still not on my own domain.Well shoot... it's working now, I didn't wait long enough after enabling it. Still curious why it was created in a disabled state, but it's working now.