Deploy to Production

Deploy to Production
  • Bernard Bado
    Written byBernard Bado
  • Published At

When you feel like your SaaS is ready for the market, you'll need to create a production deployment.

Since the start is built using NextJS, we highly recommend using Vercel for deployment.

Creating Deployment

Inside Vercel platform, create the next project, and import from Git platform of your choice.

Importing project to Vercel

Importing project to Vercel

Give your project a name and make sure all environment variables are set properly.

Here's the list of all environment variables that need to be provided.

  • NEXTAUTH_URL
  • NEXTAUTH_SECRET
  • EMAIL_FROM
  • EMAIL_SERVER_PASSWORD
  • EMAIL_SERVER_USER
  • EMAIL_SERVER_PORT
  • EMAIL_SERVER_HOST
  • NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
  • STRIPE_SECRET_KEY
  • STRIPE_WEBHOOK_SECRET
  • DATABASE_URL
  • GOOGLE_ID
  • GOOGLE_SECRET

Your application won't function properly, if you forget to specify ENV variables.

if you did everything correctly, your project should be deployed and assigned a new URL.

Vercel Deployment

Vercel Deployment

Share This Article