diff --git a/.env.example b/.env.example index 4a226e555e..27fdb5b419 100644 --- a/.env.example +++ b/.env.example @@ -46,8 +46,7 @@ PGSSLMODE= # @see: https://github.com/calendso/calendso/issues/263 # @see: https://next-auth.js.org/configuration/options#nextauth_url # Required for Vercel hosting - set NEXTAUTH_URL to equal your NEXT_PUBLIC_WEBAPP_URL -# NEXTAUTH_URL='http://localhost:3000' -NEXTAUTH_URL= +NEXTAUTH_URL='http://localhost:3000' # @see: https://next-auth.js.org/configuration/options#nextauth_secret # You can use: `openssl rand -base64 32` to generate one NEXTAUTH_SECRET= diff --git a/README.md b/README.md index 903074aba6..4309a95cee 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,10 @@ Here is what you need to be able to run Cal. yarn ``` -1. Use `openssl rand -base64 32` to generate a key and add it under `NEXTAUTH_SECRET` in the .env file. +1. Set up your .env file + - Duplicate `.env.example` to `.env` + - Use `openssl rand -base64 32` to generate a key and add it under `NEXTAUTH_SECRET` in the .env file. + - Use `openssl rand -base64 24` to generate a key and add it under `CALENDSO_ENCRYPTION_KEY` in the .env file. #### Quick start with `yarn dx`