From 3adb56f9e4f2b5fa093b802f2ec441bc5238c3e2 Mon Sep 17 00:00:00 2001 From: Amin Latifi Date: Thu, 31 Aug 2023 11:25:10 +0330 Subject: [PATCH] Fixed env var name --- src/modules/configure.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/configure.module.ts b/src/modules/configure.module.ts index 3c3fa77..76d0664 100644 --- a/src/modules/configure.module.ts +++ b/src/modules/configure.module.ts @@ -3,7 +3,7 @@ import { ConfigModule } from '@nestjs/config'; const configureModule = ConfigModule.forRoot({ envFilePath: 'config/' + - (process.env.node_env === 'production' + (process.env.NODE_ENV === 'production' ? 'production.env' : 'development.env'), isGlobal: true,