diff --git a/src/main.ts b/src/main.ts index a7c7f89..4be7441 100644 --- a/src/main.ts +++ b/src/main.ts @@ -25,6 +25,11 @@ async function bootstrap() { const app = await NestFactory.create(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());