SaaS
Getting Started

Deployment

Deploy your SaaS to Vercel in one click — with your own domain, SSL, and auto-scaling.

Deploy to Vercel

The recommended deployment platform is Vercel. It auto-detects Next.js, handles SSL, and provides a global CDN.

One-Click Deploy

Deploy to Vercel

Manual Deploy

# Install the Vercel CLI
npm install -g vercel

# Login
vercel login

# Deploy from the app directory
cd apps/web
vercel --prod
  1. Set environment variables in the Vercel dashboard (Project → Settings → Environment Variables)
  2. Run vercel --prod
  3. Add your custom domain in the Vercel dashboard

Postgres on Vercel

Create a Vercel Postgres database or connect an external one (Neon, Supabase). Set POSTGRES_URL as an environment variable.

Stripe in Production

  1. Switch from test to live mode in Stripe Dashboard
  2. Create live products and prices
  3. Update STRIPE_SECRET_KEY to your live key
  4. Update your webhook endpoint URL to your production domain

Domain Setup

In the Vercel dashboard:

  1. Go to Project → Settings → Domains
  2. Add your domain (e.g. app.example.com)
  3. Follow the DNS instructions (add a CNAME record)
  4. Vercel auto-provisions SSL via Let's Encrypt
Keep your Cloudflare proxy off

If your DNS is on Cloudflare, set the CNAME to DNS-only (grey cloud). The orange cloud (proxy) can conflict with Vercel's SSL provisioning.

Next.js SaaS Starter — Launch your SaaS