From 43bdcfe9e1ac4024b77ecfd43fa756586711ee3d Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 20 Nov 2023 15:14:19 +0000 Subject: [PATCH] rename infisical token env var --- .env-example | 2 +- src/index.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.env-example b/.env-example index 256cc03..9cad350 100644 --- a/.env-example +++ b/.env-example @@ -1 +1 @@ -INFISCAL_TOKEN=set me \ No newline at end of file +INFISICAL_TOKEN=set me \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index fbfd64a..fabd2d8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,15 +8,21 @@ import { createInfisicalClient } from "./util/secrets"; // Load the environment variables dotenv.config(); -const isValid = checkEnvironmentVariables("INFISCAL_TOKEN"); +const isValid = checkEnvironmentVariables("INFISICAL_TOKEN"); if (!isValid) { process.exit(1); } export const InfisicalClient = createInfisicalClient( - process.env.INFISCAL_TOKEN! + process.env.INFISICAL_TOKEN! ); +console.log("---"); +console.log( + "NOTE: If the infisical secret is invalid, it will say secrets are missing." +); +console.log("If this happens please check the env variable and/or the secret"); +console.log("---"); // Load the secrets first so we ensure they are valid before starting the server initSecrets().then(async () => { await connectMongo();