This commit is contained in:
pradeepkumar
2026-01-24 22:19:26 +05:30
parent 3b76a5aa50
commit 4397075715
8 changed files with 208 additions and 6 deletions

View File

@@ -2,6 +2,7 @@ import { NestFactory } from '@nestjs/core';
import { ValidationPipe, Logger, BadRequestException } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import { NestExpressApplication } from '@nestjs/platform-express';
import helmet from 'helmet';
import cookieParser from 'cookie-parser';
import { AppModule } from './app.module';
@@ -10,7 +11,7 @@ import { TransformInterceptor } from './common/interceptors';
async function bootstrap() {
const logger = new Logger('Bootstrap');
const app = await NestFactory.create(AppModule);
const app = await NestFactory.create<NestExpressApplication>(AppModule);
const configService = app.get(ConfigService);
const port = configService.get<number>('app.port') || 3001;