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
Walshy
Walshy2y ago
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:
Walshy
Walshy2y ago
Production builds will still create builds, you can disable prod in the box above
IEatBeans
IEatBeansOP2y ago
I want to disable all except the latest build
Walshy
Walshy2y ago
We don't have that functionality. What's the use case?
IEatBeans
IEatBeansOP2y ago
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
Walshy
Walshy2y ago
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
IEatBeans
IEatBeansOP2y ago
That’s a good solution, thanks!
Want results from more Discord servers?
Add your server