Deployment is triggered on the wrong branch

Deployments are triggered for the main branch

Expected is to be triggered on the “prod” branch

Hi @kranthi-thoughtflow, welcome to the Vercel Community!

The latest deployment from the main branch was done in the Preview environment and not the Production environment. Only the commits from the prod branch will be deployed to the Production environment automatically.

I hope this helps.

Hi @anshumanb ,

Thanks for the warm welcome.

I just pushed some code to the prod branch

But no new deployments were triggered for this branch

Would I need to change some configuration for the branch in github?

I think I figured this out.

Had to create a branch specific webhook in github.

Thanks @anshumanb

Hi @kranthi-thoughtflow, you don’t need to do that manually. When you set that branch as the production branch, Vercel will take care of everything.

But I’m glad you got it working.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.