From a208059c251ceb7ec8cbc0ee9f868446b86e73a5 Mon Sep 17 00:00:00 2001 From: Semen Loktionov Date: Thu, 30 Nov 2023 15:37:57 +0200 Subject: [PATCH] remove env from gitignore --- .gitignore | 3 +-- README.md | 2 +- env-example | 2 +- src/config.ts | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index b483090..1cbb998 100644 --- a/.gitignore +++ b/.gitignore @@ -19,8 +19,7 @@ # production /build -.env -.env.* +.env.local # misc .DS_Store diff --git a/README.md b/README.md index ac0b422..8dce9ce 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ allow members to verify their humanity using the [Rarimo Proof of Humanity] case ## Configuration -- Set `NEXT_PUBLIC_APP_URL` to the URL of your application in the `.env` file. This URL will be used +- Set `APP_URL` to the URL of your application in the `.env` file. This URL will be used to redirect users after they verify their humanity. By default, it should be `http://localhost:8000` if you didn't change the port (check [Starting the server](#starting-the-server)) - Set `POH_APP_URL` to the according url of the Rarimo Proof of Humanity application in diff --git a/env-example b/env-example index a62a0c2..a0aed9b 100644 --- a/env-example +++ b/env-example @@ -1,4 +1,4 @@ -NEXT_PUBLIC_APP_URL="http://localhost:8000" +APP_URL="http://localhost:8000" POH_APP_URL="https://robotornot.mainnet-beta.rarimo.com" # https://api-qa.collab.land/config diff --git a/src/config.ts b/src/config.ts index a434bd2..7b5f30a 100644 --- a/src/config.ts +++ b/src/config.ts @@ -27,7 +27,7 @@ const loadCfg = (): Config => { collablandEcdsaPublicKey: process.env.COLLABLAND_ECDSA_PUBLIC_KEY, collablandEd25519PublicKeyHex: process.env.COLLABLAND_ED25519_PUBLIC_KEY_HEX, pohAppUrl: process.env.POH_APP_URL, - appUrl: process.env.NEXT_PUBLIC_APP_URL, + appUrl: process.env.APP_URL, }) return validationSchema.validateSync(config, {