'how to deploy custom github branch on vercel
Is there a way to select a custom branch to deploy ? I do not seem to be able to select a branch and it takes the default main branch
thanks in advance
Solution 1:[1]
Vercel automatically deploys any commit you push to a branch.
You can also customize which branch is used as the Production Branch in the project settings: Go to Project Settings > Git > Production Branch
Solution 2:[2]
If you want to deploy a branch without pushing a commit, you can use vercel-cli
.
To re-deploy the preview environment:
vercel --force
To re-deploy the production environment:
vercel --prod --force
If you haven't setup vercel-cli
yet check Vercel's CLI document
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | haverchuck |
Solution 2 | trkaplan |