How to change and manage subdomains?

I have a Pages "app/project" with custom domains. I can't see how to change the assigned subdomain associated with the Page (e.g., foo.pages.dev).
6 Replies
Chaika
Chaika7mo ago
can you clarify a bit more? You can add/remove custom domains of your own. If you're talking strictly about the pages.dev subdomain that is assigned to you, you cannot change that without recreating the project
richburdon
richburdonOP7mo ago
ah ok -- it's the latter. i wanted to change that so that's locked in when the project is created? but i could create a new project and then change the custom domain/DNS records. is that right?
Chaika
Chaika7mo ago
yes just be careful, you can do that, but you'll have to readd the custom domain to the new project, just changing the dns records aren't enough, and it's going to incur some amount of downtime
richburdon
richburdonOP7mo ago
right -- that was my concern. ok -- and there's no way to do this programatically via the CF APIs? (i.e., no way to change the subdomain programatically?)
Chaika
Chaika7mo ago
there's an API to add/remove custom domains, but no api to change the pages.dev, it's just static at the end of the day the pages.dev for a project is just a hidden zone in your account changing your workers.dev causes some amount of downtime for workers on that, even even if they offered a managed way to do it, don't see how they would avoid the downtime of resetting up the custom hostnames without some serious magic/overriding of internal stuff you can change your project name though, just doesn't change the pages.dev
richburdon
richburdonOP7mo ago
ok got it -- i think i have the right mental model now -- thank you!
Want results from more Discord servers?
Add your server