Overview
Deploy your StartupKit application to production
StartupKit works with any platform that supports Next.js. This guide covers deployment to popular platforms.
Supported Platforms
| Platform | Best For |
|---|---|
| Vercel | Easiest setup, great for most projects |
| Cloudflare | Edge-first, global performance |
| Railway | Simple infrastructure, good DX |
| Render | Straightforward pricing |
| Fly.io | Multi-region, container-based |
Before You Deploy
1. Database
You'll need a PostgreSQL database. Recommended providers:
- Neon — Serverless Postgres, generous free tier
- Supabase — Postgres with extras
- Railway — Simple managed Postgres
- PlanetScale — MySQL (requires adapter)
2. Run Migrations
Before first deployment, push your schema:
pnpm db:pushOr run migrations:
pnpm db:migrate3. Environment Variables
Each platform has its own way of setting environment variables. At minimum, you'll need:
DATABASE_URL=postgresql://...
BETTER_AUTH_SECRET=your-secret-keySee Environment Variables for the complete list.
Production Checklist
Before going live:
- Environment variables are set
- Database is provisioned and migrated
- Authentication providers configured with production URLs
- Analytics is tracking correctly
- Custom domain configured
- SSL certificate active
Monorepo Configuration
For all platforms, you'll need to configure the build for your monorepo:
- Root Directory:
apps/web - Build Command:
pnpm build(orturbo run build --filter=web) - Install Command:
pnpm install
Next Steps
Choose your deployment platform:
- Vercel — Recommended for most users
- Cloudflare — Edge deployment
- Railway — Simple setup
- Render — Predictable pricing
- Fly.io — Multi-region containers