How exactly do I deploy an open source NextJS project on Vercel?
Answered
White-tailed Tropicbird posted this in #help-forum
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
How do I make it so it only deploys when I want it to?
Thanks!
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)
5 Replies
@White-tailed Tropicbird 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!
just disconnect the repo from vercel dashboard and use [Deploy Hooks](https://vercel.com/docs/deployments/deploy-hooks)
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