How to handle Prod and Dev in Vercel.

Hey everyone, I've been using Vercel to host web apps for a decent amount of time. But I still can't figure out a way to separate prod from dev on deployments. Let's say I have a github repo with a main and dev branches. I'd like the prod deployment to be rebuilt on every push to main. And I'd like the dev deployment to be built on every push to dev. How do you guys work out this prod dev thing when using Vercel?
Solution:
you can set the main branch in the settings for production deployments
Jump to solution
3 Replies
Solution
Matvey
Matvey2y ago
you can set the main branch in the settings for production deployments
Matvey
Matvey2y ago
to create a preview deployment, create a PR into the main branch
Benjamin
Benjamin2y ago
I was asking the same kind of question, you're lucky someone answered 🥲 If someone can help me answering my question, I would gladly appreciate it! 🙏 https://discord.com/channels/966627436387266600/1137767555608629248/1137767555608629248
Want results from more Discord servers?
Add your server