Reputation: 11
I have tried to change the production branch for a project on vercel from main to another branch, but when I redeploy, the source remains main. What am I doing wrong?
[the source is still the main branch after changing and saving the signuplast branch][i changed the branch name to signuplast]
I was expecting to deploy the branch I am working on but Vercel only deploys the main branch in my project.
Upvotes: 1
Views: 387
Reputation: 11
did you try on cli? when you work on your second branch in vs-code install vercel as global.
npm install -g vercel
vercel --version
vercel login
and then when you want to see development version of your project run this command
vercel dev
after checking
vercel --prod
of course you must be on second branch. by this way always you must see your second branch on vercel. i worked on cli and i had no problem. in my opinion easy way.
Upvotes: 0