Next.js Discord

Discord Forum

How exactly do I deploy an open source NextJS project on Vercel?

Answered
White-tailed Tropicbird posted this in #help-forum
Open in Discord
White-tailed TropicbirdOP
So I will be making an open source NextJS project that I will be deploying on Vercel.
However Vercel deploys every time I push to the main branch.
How do I make it so it only deploys when I want it to?
Thanks!
Answered by White-tailed Tropicbird
I was thinking more of this: (settings -> git -> production branch)
View full answer

5 Replies

White-tailed TropicbirdOP
I was thinking more of this: (settings -> git -> production branch)
Answer
that's a good idea too
White-tailed TropicbirdOP
I'll change this to prod and just merge with main every time I want to deploy a production build.
vercel will deploy the project if you open a PR from other branch to the production branch