Skip to content

Instantly share code, notes, and snippets.

@jacobdo2
Last active June 8, 2020 08:41
Show Gist options
  • Save jacobdo2/8d2e0c7ae18c8388699ea5aa14df8f55 to your computer and use it in GitHub Desktop.
Save jacobdo2/8d2e0c7ae18c8388699ea5aa14df8f55 to your computer and use it in GitHub Desktop.
Adding ConfigModule ot app.module.ts
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