Production deployment overview
Checklist for shipping THE HCLAB to production.
THE HCLAB targets Vercel for hosting with a managed PostgreSQL provider (Neon, Vercel Postgres, Supabase, etc.).
Deployment checklist
- Provision PostgreSQL and note the connection string
- Set environment variables in Vercel
- Run
npx prisma db pushagainst productionDATABASE_URL - Optionally run
npm run db:seedfor initial categories and admin user - Connect the GitHub repo to Vercel and deploy
- Configure custom domain and update
NEXT_PUBLIC_SITE_URL - Wire Stripe webhooks and email provider
- Verify auth, CMS, and research flows
Architecture
Browser → Vercel (Next.js 16) → PostgreSQL
↓
Stripe / Resend / S3 / OpenAI (optional)
↓
Cron routes (/api/cron/*)
What differs from local
| Concern | Local | Production |
|---|---|---|
| Database | Local Postgres | Managed Postgres |
| Console logs | Resend (or provider) | |
| Stripe | Test keys + CLI | Live keys + dashboard webhook |
| Cron | Manual HTTP calls | Vercel Cron with CRON_SECRET |
| Maintenance | Usually off | MAINTENANCE_MODE=true when needed |
Read next
- Vercel — project setup and build
- Production environment — required env vars
- Post-deploy verification — smoke tests