Setting differnet branch for .pages and custom domains

hi there,

i am using custom domain for Cloudflare pages. is it possible to attach diiferent branches to the domains for example the example.com

custom domain: example.com
Cloudflare pages domain : example.pages.dev

can i make the custom domain to build from main branch while pages.dev to build from staging branch of the same repo?

thanks

You can create a custom domain that points to a specific branch - follow https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.