From 8aa9e1e6da7b6b9074b20cbf7ca4bb92ecaf80c0 Mon Sep 17 00:00:00 2001 From: stae1102 Date: Sat, 9 Mar 2024 17:34:18 +0900 Subject: [PATCH] feat: add node_env validation valid var --- src/app.module.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app.module.ts b/src/app.module.ts index 4a4e783..e95e8e9 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -26,9 +26,11 @@ import { InfraModule } from './infra/infra.module'; ? '.env.dev' : process.env.NODE_ENV === 'prod' ? '.env.prod' - : '.env.local', + : process.env.NODE_ENV === 'local' + ? '.env.local' + : '.env.test', validationSchema: Joi.object({ - NODE_ENV: Joi.string().valid('dev', 'prod', 'local').required(), + NODE_ENV: Joi.string().valid('dev', 'prod', 'local', 'test').required(), DB_HOST: Joi.string(), DB_PORT: Joi.string(), DB_USERNAME: Joi.string(),