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();