This commit is contained in:
2025-12-09 23:40:44 +03:30
parent 07f3006aef
commit 33b250287c
14 changed files with 386 additions and 1 deletions
+3
View File
@@ -4,6 +4,7 @@ import { ConfigService } from '@nestjs/config';
import { Logger, ValidationPipe } from '@nestjs/common';
import { getSwaggerConfig } from './config/swagger.config';
import multipart from '@fastify/multipart';
import fastifyCookie from '@fastify/cookie';
// 👈 Import the Fastify application type
import { type NestFastifyApplication, FastifyAdapter } from '@nestjs/platform-fastify';
@@ -22,6 +23,8 @@ async function bootstrap() {
{ logger: ['error', 'warn', 'log', 'debug', 'verbose'] },
);
await app.register(fastifyCookie);
await app.register(multipart);
app.useGlobalPipes(new ValidationPipe());