@@ -25,6 +25,11 @@ async function bootstrap() {
|
||||
|
||||
const app = await NestFactory.create<NestFastifyApplication>(AppModule, fastifyAdapter);
|
||||
|
||||
fastifyAdapter.getInstance().addHook("onRequest", (req, reply, done) => {
|
||||
console.log("📩 Incoming request:", !!reply, req.method, req.url);
|
||||
done();
|
||||
});
|
||||
|
||||
app.useGlobalPipes(new ValidationPipe({ transform: true, whitelist: true }));
|
||||
|
||||
app.useGlobalInterceptors(new ResponseInterceptor(), new PaginationInterceptor());
|
||||
|
||||
Reference in New Issue
Block a user