Change production branch of the Page

For Workes & Pages, what is the name of the domain?

bn-dp-web-app-prod.pages.dev

What is the issue or error you’re encountering

Cannot change production branch

What steps have you taken to resolve the issue?

I followed documentation, but there is no option to change the production branch in Cloudflare pages. I run my deployments with “–branch main” parameter, but it always deploys as preview.

As per my knowledge, main is by default a production branch. Any changes you do, that it becomes a sub branch. So, most likely you can’t change a production branch unless you do that in Github.