This commit is contained in:
2026-02-02 08:56:02 +03:30
parent 0ba027d4e3
commit b051442686
4 changed files with 274 additions and 69 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ async function bootstrap() {
const app = await NestFactory.create<NestFastifyApplication>(AppModule, fastifyAdapter);
await app.register(compression, { encodings: ["gzip", "deflate"] });
await app.register(compression as any, { encodings: ["gzip", "deflate"] });
app.useGlobalPipes(new ValidationPipe({ transform: true, whitelist: true }));
app.useGlobalInterceptors(new ResponseInterceptor(), new PaginationInterceptor(), new ClassSerializerInterceptor(app.get(Reflector)));