When I first deployed my app using Vercel, it went straight into Production by default. Now, I want to revise my setup so I can deploy changes first to a Pre-Production environment (i.e., staging or preview), and only later push them to Production.
I’m also planning to manage this via Git, with separate branches — ideally something like:
main
→ Productionpre-production
orstaging
→ Pre-Production
I’ve been checking the v0/Vercel docs but couldn’t find a straightforward guide on how to configure this properly. Ideally, I’d like:
- Git pushes to
pre-production
to trigger a Preview deployment - Git pushes to
main
to go to Production - (Bonus) A custom subdomain like
staging.myapp.com
to point to Pre-Production
If anyone’s already done something like this or has tips on the best setup for this kind of workflow in Vercel, I’d appreciate your insights!
Thanks in advance!