We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db1843b commit 734186cCopy full SHA for 734186c
src/app.module.ts
@@ -11,7 +11,7 @@ import { NotFoundExceptionFilter } from './common/filter/not-found-exception.fil
11
12
@Module({
13
imports: [
14
- ConfigModule.forRoot(),
+ ConfigModule.forRoot({ isGlobal: true }),
15
MySQLModule,
16
DebugModule,
17
HealthModule,
src/database/mysql.module.ts
@@ -1,14 +1,11 @@
1
import { Module } from '@nestjs/common';
2
import { TypeOrmModule } from '@nestjs/typeorm';
3
-import { ConfigModule, ConfigService } from '@nestjs/config';
4
import { TypeOrmConfigService } from './ormconfig.service';
5
6
7
8
TypeOrmModule.forRootAsync({
9
- imports: [ConfigModule],
10
useClass: TypeOrmConfigService,
- inject: [ConfigService],
}),
],
})
0 commit comments