Deployment
Build pipeline
All deployments go through CI:
- Lint and typecheck —
pnpm check - Test —
pnpm test - Build —
pnpm build - Deploy — platform-specific deploy step
Web (Vercel)
The web app deploys to Vercel on push to main:
Environment variables are managed in the Vercel dashboard.
API (Railway)
The API deploys to Railway:
Database migrations
Migrations run automatically in CI before deployment:
Migrations are never run directly in production. Always go through the CI pipeline.
Rollback
Both Vercel and Railway support instant rollbacks to the previous deployment. No code changes required.