From e0ac12be14f2a443aa4a9c90a069d7cadda04bcd Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Sun, 9 Apr 2023 10:40:49 -0700 Subject: [PATCH] default to prod when no node env --- backend/src/config/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/config/index.ts b/backend/src/config/index.ts index 33066f613..68427d078 100644 --- a/backend/src/config/index.ts +++ b/backend/src/config/index.ts @@ -13,7 +13,7 @@ export const getJwtServiceSecret = () => infisical.get('JWT_SERVICE_SECRET')!; export const getJwtSignupLifetime = () => infisical.get('JWT_SIGNUP_LIFETIME')! || '15m'; export const getJwtSignupSecret = () => infisical.get('JWT_SIGNUP_SECRET')!; export const getMongoURL = () => infisical.get('MONGO_URL')!; -export const getNodeEnv = () => infisical.get('NODE_ENV')!; +export const getNodeEnv = () => infisical.get('NODE_ENV')! || 'production'; export const getVerboseErrorOutput = () => infisical.get('VERBOSE_ERROR_OUTPUT')! === 'true' && true; export const getLokiHost = () => infisical.get('LOKI_HOST')!; export const getClientIdAzure = () => infisical.get('CLIENT_ID_AZURE')!;