From 6aa389f2c75d976e13eb2995d2f92f0e6106cdb5 Mon Sep 17 00:00:00 2001 From: minkj1992 Date: Fri, 22 Jan 2021 11:02:34 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20.env.dev=20=EB=A1=9C=20=EC=A0=84?= =?UTF-8?q?=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .env는 배포때만 쓰일 예정 --- README.md | 1 + src/config/config.module.ts | 2 +- src/main.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9550ae8..1d3a95d 100644 --- a/README.md +++ b/README.md @@ -291,3 +291,4 @@ db.createUser({ user: "<아이디>", pwd: "<비번>", roles: ["readWrite", "dbAd db.auth("<아이디>","<비번>") ``` + diff --git a/src/config/config.module.ts b/src/config/config.module.ts index 7356c14..c8bc35a 100644 --- a/src/config/config.module.ts +++ b/src/config/config.module.ts @@ -5,7 +5,7 @@ import { ConfigService } from "./config.service"; providers: [ { provide: ConfigService, - useValue: new ConfigService(".env"), + useValue: new ConfigService(".env.dev"), }, ], exports: [ConfigService], diff --git a/src/main.ts b/src/main.ts index 9ea4741..770cba2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,7 +7,7 @@ async function bootstrap() { logger: ["error", "warn"], }); - const configService = new ConfigService(".env"); + const configService = new ConfigService(".env.dev"); app.enableCors(); // app.setGlobalPrefix(configService.get("NODE_ENV"));