Made by Tapan Rai
This is a monorepo repository with:
yarn
.env.example
to .env.local
and update the variables.cp ./apps/web/.env.example ./apps/web/.env.local
yarn dev
This is an exhaustive list of all the environment variables in the project
NEXT_PUBLIC_APP_URL
- The is the URL of your application, make sure to append https://
to your domain. In local dev mode, you can set this variable in env.local / env.development
and give it this value http://localhost:3000
.NEXTAUTH_URL
- When deploying to vercel you do not have to set this value, but when you develop you can set this as http://localhost:3000
. Find more details here.NEXTAUTH_SECRET
- Used to encrypt JWT and you can easily generate a secret using openssl rand -base64 32
. Find more details here.GOOGLE_CLIENT_ID
and GOOGLE_CLIENT_SECRET
- Both Client ID and Client Secret of Google App can be generated at your Google Cloud Console page. You can provide your NEXT_PUBLIC_APP_URL
as the Homepage URL and append /api/auth/callback/google
for the callback URLPOSTGRES_PRISMA_URL
& POSTGRES_URL_NON_POOLING
- You will only need these two variables after you have setup your database as we are using Prisma.