Adi
Adi
CDCloudflare Developers
Created by Adi on 1/24/2024 in #pages-help
Change production branch name for pages direct deployment
Hey all, I've been deploying my pages projects using github actions (wrangler cli / wrangler action). I'm in the process of changing github repositories for the projects and as a result of this, the "default" production branch name has changed from master to main. However, when I do a deployment using wrangler pages deploy public/ it makes a preview deployment on the main branch. This makes sense since the default branch is configured to be master. Does anyone know how to change the "default" branch for a pages project? I poked around in the settings but couldn't find anything. Relevant info - account id: 87a3c637ba57424b09104e5ade4caffe
5 replies