Can I use a non-default branch for production?

Different organizations have different workflow requirements. Sometimes, that might entail going to production with a branch that isn't set as the default. Read on to learn about how Vercel supports this use case.

Production Branch Project Setting

In the Git menu item of your project's settings page, you'll find a fieldset that allows you to select which branch you'd like to associate with production. You can choose between the main branch, your repository's default branch, or any other custom branch in your repository.

The Production Branch fieldset on the Vercel Dashboard.
The Production Branch fieldset on the Vercel Dashboard.

Once you've entered the new branch you want to use as your Production Branch, click "Save". All future pushes made to that branch will be Production Deployments.

Couldn't find the guide you need?