Last active
June 8, 2020 08:41
-
-
Save jacobdo2/8d2e0c7ae18c8388699ea5aa14df8f55 to your computer and use it in GitHub Desktop.
Adding ConfigModule ot app.module.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Module } from '@nestjs/common'; | |
import { AuthModule } from './auth/auth.module'; | |
import { ConfigModule } from '@nestjs/config'; | |
@Module({ | |
imports: [ | |
AuthModule, | |
ConfigModule.forRoot({ | |
isGlobal: true, | |
}), | |
], | |
}) | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment