Production branch setup
I have setup two worker pages, one of which has worked and automatically detects 'master' builds as the production environment. The other, I can no longer find the setting to update. Looking at the docs below, it mentions
Pages project > Settings > Builds & deployments > Configure Production deployments
however i cannot see Builds & deployments. I assumed it has changed location, but cant find it. Am i being blind? where can i find the place to set this branch rule please ๐ Heres a screenshot of what i can see
https://developers.cloudflare.com/pages/configuration/branch-build-controls/#:~:text=%E2%80%8B%E2%80%8B%20Production%20branch%20control,another%20branch%20if%20you%20chooseCloudflare Docs
Branch build controls ยท Cloudflare Pages docs
When connected to your git source, Pages allows you to control which environments and branches you would like to automatically build. By default, โฆ
1 Reply
If it's a Direct Upload Project, there's no easy way to change it via the UI. Only the API can change it
in Firefox using Edit and Resend like https://discord.com/channels/595317990191398933/789155108529111069/1207029322783924254
or via API, Patch to
PATCH "https://api.cloudflare.com/client/v4/accounts/<account id>/pages/projects/<project name>"
Body of
{"production_branch": "master"} (or whatever you want it to be)