deploy-checklist

Pre-deployment verification for Vercel-hosted Next.js projects. Use before deploying or when user mentions deploy, ship, or release.

SKILL.md

GitHub

Deploy Checklist

Run each section in order before any deployment. If any check fails, stop and fix before proceeding.

Code Quality

  1. Run npm run typecheck — zero errors
  2. Run npm run lint — zero warnings
  3. Run npm test — all passing

If failing: Fix type/lint errors first. For test failures, check if they are flaky (npm test -- --retry 1) or genuine regressions.

Environment

  1. Check .env.example is up to date with any new variables
  2. Verify Vercel environment variables are set for production (vercel env ls)
  3. Confirm no hardcoded localhost URLs or dev API keys — grep -r "localhost" src/

If missing vars: Add to Vercel via vercel env add <NAME> production before proceeding.

Database

  1. Run npx prisma migrate status — no pending migrations
  2. Verify migration is safe (no destructive changes without confirmation)

If pending migrations: Review the migration SQL, then run npx prisma migrate deploy after explicit approval. Never auto-apply destructive changes.

Stripe (if SkillsFrame)

  1. Confirm webhook endpoint is registered in Stripe dashboard
  2. Verify webhook signing secret is in production env

Final

  1. Create a git tag: git tag -a v{version} -m "Release {version}"
  2. Push: git push origin main --tags
  3. After deploy completes, verify the production URL loads and key routes respond