Deploy
Deploys TenantFlow to the target environment.
Usage
/deploy— deploy to staging (default)/deploy --prod— deploy to production (confirms before proceeding)
Workflow
- Pre-flight check — verify no uncommitted changes, run
npm run test - Build — run
npm run buildand confirm it succeeds - Deploy to staging — run
vercel(deploys to preview URL) - Smoke test — verify the preview URL loads and
/api/healthreturns 200 - If --prod: confirm with user, then run
vercel --prod
Project specifics
- Staging URL: Vercel preview URL (auto-generated)
- Production URL: tenantflow.vercel.app
- Deploy command:
vercel(staging) /vercel --prod(production) - Rollback:
vercel rollback - Database: Railway PostgreSQL — run
/migratebefore deploying if schema changed