Skip to content

Commit 734186c

Browse files
committed
refactor: ConfigModule 전역 설정
1 parent db1843b commit 734186c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { NotFoundExceptionFilter } from './common/filter/not-found-exception.fil
1111

1212
@Module({
1313
imports: [
14-
ConfigModule.forRoot(),
14+
ConfigModule.forRoot({ isGlobal: true }),
1515
MySQLModule,
1616
DebugModule,
1717
HealthModule,

src/database/mysql.module.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
import { Module } from '@nestjs/common';
22
import { TypeOrmModule } from '@nestjs/typeorm';
3-
import { ConfigModule, ConfigService } from '@nestjs/config';
43
import { TypeOrmConfigService } from './ormconfig.service';
54

65
@Module({
76
imports: [
87
TypeOrmModule.forRootAsync({
9-
imports: [ConfigModule],
108
useClass: TypeOrmConfigService,
11-
inject: [ConfigService],
129
}),
1310
],
1411
})

0 commit comments

Comments
 (0)