Skip to content

Instantly share code, notes, and snippets.

@madebydin
Last active May 23, 2020 12:45
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 madebydin/91e6f92ef89fcca2fa2faae4111faf9e to your computer and use it in GitHub Desktop.
Save madebydin/91e6f92ef89fcca2fa2faae4111faf9e to your computer and use it in GitHub Desktop.
เพิ่ม Config Module
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