Operations / Releases
Releases
Preview safely and serialize production migrations before deploy.
Vercel owns preview deployments. GitHub Actions owns the production migration and deploy sequence.
Preview
Every non-main branch gets a native Vercel preview. The Neon integration creates an isolated branch for it. A preview build may apply pending migrations because the database is disposable.
Production
The mainline workflow has one job: serialize the reviewed production migration before deploying the exact commit. Schema changes must be backward compatible with the previously deployed version.
reviewed migration → protected Neon branch → Vercel production build → smoke check
Rollback
Roll code back in Vercel when needed. Fix database issues with a forward-compatible migration; do not automate destructive down migrations.