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
- Go to vercel.com/new
- Import your GitHub repository
- Framework preset: Next.js (auto-detected)
- Build command:
pnpm build - 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_URLto 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