Envirnment Variables
To set up the environment variables, you need to create a .env.local
file in the root of the project and add the following variables:
# Copy the .env.example file into a .env.local file.
cp ./.env.example ./.env.local
Or you can change the .env.example
file to .env.local
and add the following variables:
Environment Variables
You will need to add the following environment variables to the .env.local
file:
GITHUB_CLIENT_ID=YOUR_GITHUB_CLIENT_ID
GITHUB_CLIENT_SECRET=YOUR_GITHUB_CLIENT_SECRET
GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID
GOOGLE_CLIENT_SECRET=YOUR_GOOGLE_CLIENT_SECRET
SMTP_HOST=smtp.resend.com
SMTP_PORT=465
SMTP_USER=resend
SMTP_PASSWORD=YOUR_SMTP_PASSWORD
RESEND_API_KEY=YOUR_RESEND_API_KEY
SMTP_FROM=YOUR_SMTP_FROM
SECRET=YOUR_SECRET
PRO_MONTHLY_PRICE=YOUR_PRO_MONTHLY_PRICE_ID
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=YOUR_STRIPE_PUBLISHABLE_KEY
STRIPE_SECRET_KEY=YOUR_STRIPE_SECRET_KEY
VERCEL_URL=YOUR_VERCEL_URL
NEXTAUTH_URL=YOUR_NEXTAUTH_URL
Database Variables
You will need to add the following database variables to the .env
file:
DATABASE_URL=YOUR_DATABASE_URL