rename infisical token env var
This commit is contained in:
parent
fef36b8210
commit
43bdcfe9e1
@ -1 +1 @@
|
||||
INFISCAL_TOKEN=set me
|
||||
INFISICAL_TOKEN=set me
|
10
src/index.ts
10
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user