Documentation
Vercel Deployment
StartupKit is optimized for Vercel, but the Next.js output runs on any Node host. These steps assume you cloned the zip into your own private Git repo.
Pre-flight Checklist
- Database provisioned (MongoDB Atlas) and reachable from Vercel.
- Stripe products, keys, and webhook URL ready.
- Resend domain verified (or fallback sender prepared).
- Environment variables copied from
.env.
Deploy to Vercel
- Push your private repository (created from the zip) to GitHub, GitLab, or Bitbucket.
- Import the project in Vercel.
- Paste all env vars under Project Settings → Environment Variables (repeat for Preview vs Production as needed).
- Optionally add a
postbuildscript to runprisma migrate deploybeforenext build(or run it manually). - Click Deploy.
Verification
- Visit the live URL and create a test account.
- Run through checkout with Stripe test mode and confirm the webhook logs in Vercel.
- Ensure emails send from your production domain (or at least Arrive in Resend logs).
- Check the dashboard pages still respect onboarding + subscription gating.
Production Tips
- Rotate
NEXTAUTH_SECRETand Stripe keys before handing a copy to a customer. - Disable
/dev-toolsin production by checkingprocess.env.NODE_ENV(already handled). - Use Vercel Analytics or your preferred telemetry to monitor usage.
- Schedule backups for MongoDB Atlas and Stripe webhooks.
Self-Hosting
Prefer another provider (Render, Railway, Fly.io, bare metal)? Run npm run build thennpm run start. Make sure the runtime exposes PORT and setNEXTAUTH_URL to the public domain.