It’s been mentioned a bit before but the best solution today is to use a shell script as your build
It’s been mentioned a bit before but the best solution today is to use a shell script as your build command, and then check the
CF_PAGES_BRANCH env var in it, changing the command as necessary depending on its value.