Deploying worker only on custom domain
Is there any way to deploy a worker only on my custom domain and no .dev domain? The .dev domain has my account name in it which I don't want
And similarly for pages, I'd like to be able to host the site only on the prod instance, no .dev instance, although since the name is random (i.e. my account name is not in the domain) this is less of an issue
3 Replies
actually looks like there's a change subdomain option in the dashboard for this
i'm still curious tho if it's possible to avoid deploying to the .dev urls because I don't need them
Changing is an option, you can also just disable the workers.dev per worker, either via dashboard in toml with
workers_dev = false
https://developers.cloudflare.com/pages/configuration/custom-domains/#disable-access-to-pagesdev-subdomain for pages, you can use bulk redirects to prevent access overall (if you include subdomains), or just bulk redirect on prod pages.dev url and then Access policy for previewsthanks