disable ######.yoursite.pages.dev urls
Everytime I commit, it builds and updates the main mysite.pages.dev as well as my real domain, but it keeps a log with the commit ID as a sub domain of all previous commits. I don’t want the content of previous site version to be available on the internet (even if they have to guess the commit ID). Is there any way to disable this, aside from manually hitting the delete button on each one?
Thanks!
7 Replies
Are you looking to disable all builds or just previews?
You can set previews to none here: https://dash.cloudflare.com/?to=/:account/pages/view/:pages-project/settings/builds-deployments
Like so:
Production builds will still create builds, you can disable prod in the box above
I want to disable all except the latest build
We don't have that functionality. What's the use case?
An older version of the site (before it was public) didn’t have a login page behind some restricted static content. Now it does, but that content will still be available unrestricted if using the sub domain of some older commit ID
You can enable Access over all the previews so no one except you could ever view them
It's a 1-click in the Pages dash -> Settings -> General -> Access Policy -> Enable access policy
That’s a good solution, thanks!