Environment Variables

Here is the essential environment variables you need while deploying you SaaS live

// Database
DATABASE_URL=

// Auth
GOOGLE_CLIENT_ID= 
GOOGLE_CLIENT_SECRET=
GITHUB_CLIENT_ID= 
GITHUB_CLIENT_SECRET=
NEXTAUTH_URL=

// Sanity Blog
NEXT_PUBLIC_SANITY_PROJECT_ID= 
NEXT_PUBLIC_SANITY_PROJECT_TITLE= 
SANITY_API_KEY= 
SANITY_HOOK_SECRET=

// Site Specific
SECRET= 
SITE_URL= 
SITE_NAME= 
AUTHOR_NAME=

// Stripe
STRIPE_SECRET_KEY= 
STRIPE_WEBHOOK_SECRET=

// SMTP
EMAIL_SERVER_HOST= 
EMAIL_SERVER_PORT= 
EMAIL_SERVER_USER= 
EMAIL_SERVER_PASSWORD= 
EMAIL_FROM=

// MailChimp
MAILCHIMP_API_KEY= 
MAILCHIMP_AUDIENCE_ID= 
MAILCHIMP_API_SERVER=
MAILCHIMP_API_KEY= 
MAILCHIMP_AUDIENCE_ID= 
MAILCHIMP_API_SERVER=

// Algolia Search
NEXT_PUBLIC_ALGOLIA_PROJECT_ID= 
NEXT_PUBLIC_ALGOLIA_API_KEY= 
NEXT_PUBLIC_ALGOLIA_INDEX=

// Open AI
OPENAI_API_KEY=

// For Admin privilege
ADMIN_EMAILS=

Last updated