Deploy to Vercel

Vercel is the recommended deployment platform for NextGenKit.

1. Push to GitHub

git remote add origin https://github.com/your-org/your-saas.git
git push -u origin main

2. Import in Vercel

  1. Go to vercel.com/new
  2. Import your GitHub repository
  3. Framework preset: Next.js (auto-detected)
  4. Build command: pnpm build
  5. Install command: pnpm install

3. Set Environment Variables

Add all variables from .env.local to Vercel's Environment Variables settings. Make sure to set:

  • NEXT_PUBLIC_APP_URL to your production domain
  • All Clerk, Stripe, Resend, and database keys

4. Configure Webhooks

Update your webhook endpoints in Clerk and Stripe dashboards to point to your production URL:

  • Clerk: https://your-domain.com/api/webhooks/clerk
  • Stripe: https://your-domain.com/api/webhooks/stripe

5. Database

If using Neon, no changes needed — it works serverlessly. Make sure DATABASE_URL points to your production database.

Run migrations:

pnpm db:deploy