up
This commit is contained in:
+1
-1
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user