Created
August 12, 2020 18:47
-
-
Save kop7/821eef615018c6ef2789abd7a72fd6e3 to your computer and use it in GitHub Desktop.
Config Module
This file contains 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 { 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