Last active
May 23, 2020 12:45
-
-
Save madebydin/91e6f92ef89fcca2fa2faae4111faf9e 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 { AppController } from './app.controller'; | |
import { AppService } from './app.service'; | |
import { ConfigModule } from '@nestjs/config'; | |
@Module({ | |
imports: [ConfigModule.forRoot( | |
{envFilePath: '.env.dev'} | |
)], | |
controllers: [AppController], | |
providers: [AppService], | |
}) | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment