Pages deployment UI/API questions
for a site deployment, is it possible to do the following (in UI or API):
- change the github repo associated with the deployment
- change the "base" URL (i.e. my-site.pages.dev to my-other-site.pages.dev)
- build previews on a dedicated domain via wildcard/etc.? i.e. use my custom domain for previews instead of the cloudflare URL
2 Replies
Continued from previous discussion: https://discord.com/channels/595317990191398933/1364601128175534220/1364601128175534220
change the github repo associated with the deployment, change the "base" URL (i.e. my-site.pages.dev to my-other-site.pages.dev),Not without recreating the entire project
build previews on a dedicated domain via wildcard/etc.? i.e. use my custom domain for previews instead of the cloudflare URL,As long as it's on the same preview branch, yes https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/ Not just generic ones tho
Cloudflare Docs
Add a custom domain to a branch
In this guide, you will learn how to add a custom domain (staging.example.com) that will point to a specific branch (staging) on your Pages project.