Disable preview for pages

Hi, is it possible to disable the "preview" on pages ?
6 Replies
Cyb3r-Jak3
Cyb3r-Jak32mo ago
What do you mean by preview? The preview enviorment is built into Pages. You can redirect all of the preview URLs though https://developers.cloudflare.com/pages/how-to/redirect-to-custom-domain/
Cloudflare Docs
Redirecting *.pages.dev to a Custom Domain · Cloudflare Pages docs
Learn how to use Bulk Redirects to redirect your *.pages.dev subdomain to your custom domain.
From An unknown user
From An unknown user
Ponez
PonezOP2mo ago
by preview I mean this that can be disabled on workers, but pages on the other hand don't have this option at all, you can delete a deployment but not the preview url
No description
No description
Cyb3r-Jak3
Cyb3r-Jak32mo ago
Ah, you can't disable the .pages.dev domain. You can either put access in front of the preview domains or redirect them to your main domain
Ponez
PonezOP2mo ago
Would a feature request be possible ?
Cyb3r-Jak3
Cyb3r-Jak35w ago
I mean you can try but I don't believe it is possible due to the fact that a custom domain is just a CNAME to your pages.dev domain

Did you find this page helpful?