import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { ConfigModule } from '@nestjs/config'; import config from './config/config'; import { MailModule } from './mail/mail.module'; @Module({ imports: [ ConfigModule.forRoot({ cache: true, isGlobal: true, load: [config], }), MailModule, ], controllers: [AppController], providers: [AppService], }) export class AppModule {}