From e66050a4141dd866a91d6cf96d57a70eccbac5cd Mon Sep 17 00:00:00 2001 From: Zach Waterfield Date: Tue, 30 Aug 2022 14:44:21 -0400 Subject: [PATCH] Improve the README development setup steps around environment variables (#4034) * Set the NEXTAUTH_URL in the .env example * Add a .env step to the README development setup steps. Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .env.example | 3 +-- README.md | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) 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`