Skip to content

Instantly share code, notes, and snippets.

View Gaikanomer9's full-sized avatar

Nikita Zavyalov Gaikanomer9

View GitHub Profile
@mafalt
mafalt / app.module.ts
Created July 9, 2022 18:42
NestJS + TypeORM configuration
import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { TypeOrmModule } from '@nestjs/typeorm';
import { getTypeOrmModuleOptions } from './config/orm.config';
import { CoreModule } from './core/core.module';
@Module({
imports: [
ConfigModule.forRoot({
isGlobal: true,