Preview vs production: where does my push go?
When to use this: You pushed and want to know whether the live site changed, or how to test safely first.
Before you start
Steps
-
Preview: push any other branch
terminalgit push -u origin my-branchVercel builds it and gives a unique preview URL (shown in the dashboard, and as a comment on a pull request). The live site is unchanged.
-
Production: push or merge to main
terminalgit switch main git merge my-branch git pushThe new
maincommit becomes the Production deployment and the domain now serves it. -
Find the right deployment
Vercel dashboard, your project, 'Deployments'. Each row shows the environment (Production or Preview), the branch and commit message, and its status.
How to verify it worked
- The latest deployment on
mainis labelled Production and Ready.
How to undo it
Bad production deploy: use Instant Rollback in the dashboard (see the rollback scenario).
Common errors and fixes
Q&A
Can I change which branch is production?
Yes: Project, Settings, Environments (or Git), Production Branch.
Are previews public?
They have unguessable URLs, but depending on plan and settings Vercel can require login (Deployment Protection). Do not put secrets in preview content.