diff --git a/.env.local.example b/.env.local.example index 0eb618b9..b77dd763 100644 --- a/.env.local.example +++ b/.env.local.example @@ -12,7 +12,10 @@ NEXT_PUBLIC_SITE_ORIGIN=http://localhost:3000 # If you’d like to use a Redis database to store user data in the API routes, # fill these below. See: lib/redis.ts -REDIS_CONNECTION=rediss: +REDIS_URL= +REDIS_PORT=6379 +REDIS_PASSWORD= +REDIS_SSL_ENABLED=false # will be used to create a hash of the email address, which will be used for the Redis key for # each user data (i.e. id:). See lib/redis.ts for details. REDIS_EMAIL_TO_ID_SECRET= diff --git a/README.md b/README.md index 12f65efa..fb6801cf 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,13 @@ The demo ([demo.vercel.events](https://demo.vercel.events/)) uses [Redis](https 1. Install Redis locally and run it. 2. Specify the following in `.env.local`: -`REDIS_PORT=6379 # Default Redis port number REDIS_URL=localhost REDIS_PASSWORD= REDIS_SSL_ENABLED= REDIS_EMAIL_TO_ID_SECRET=foo # Come up with your own secret string` +```sh +REDIS_PORT=6379 # Default Redis port number +REDIS_URL=localhost +REDIS_PASSWORD= +REDIS_SSL_ENABLED= +REDIS_EMAIL_TO_ID_SECRET=foo # Come up with your own secret string +``` > REDIS_EMAIL_TO_ID_SECRET will be used to create a hash of the email address, which will be used for the Redis key for each user data (i.e. id:). See lib/redis.ts for details.