Skip to content

Instantly share code, notes, and snippets.

@kop7
Created August 12, 2020 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kop7/821eef615018c6ef2789abd7a72fd6e3 to your computer and use it in GitHub Desktop.
Save kop7/821eef615018c6ef2789abd7a72fd6e3 to your computer and use it in GitHub Desktop.
Config Module
import { Module } from '@nestjs/common';
import { ConfigService } from './config.service';
@Module({
providers: [
{
provide: ConfigService,
useValue: new ConfigService('.env'),
},
],
exports: [ConfigService],
})
export class ConfigModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment