fix and update

This commit is contained in:
lendry
2026-06-29 18:14:00 +03:00
parent 71dfeda873
commit 5a220917dc
4 changed files with 169 additions and 70 deletions

View File

@@ -1,12 +1,14 @@
import { ValidationPipe } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { NestExpressApplication } from '@nestjs/platform-express';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import cookieParser from 'cookie-parser';
import { AppModule } from './app.module';
import { AllExceptionsFilter } from './grpc-exception.filter';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const app = await NestFactory.create<NestExpressApplication>(AppModule);
app.set('trust proxy', 1);
app.use(cookieParser());
app.enableCors({ origin: true, credentials: true });
app.useGlobalPipes(