StartupKitstartupkit

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

PlatformBest For
VercelEasiest setup, great for most projects
CloudflareEdge-first, global performance
RailwaySimple infrastructure, good DX
RenderStraightforward pricing
Fly.ioMulti-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:push

Or run migrations:

pnpm db:migrate

3. 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-key

See 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 (or turbo run build --filter=web)
  • Install Command: pnpm install

Next Steps

Choose your deployment platform:

On this page