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"));