From 80853bad0f92dbb67c8573f21fbe18bc6ea80f89 Mon Sep 17 00:00:00 2001 From: saharbolboliankhah Date: Sat, 1 Nov 2025 16:40:11 +0330 Subject: [PATCH] fix(uploader): test log --- src/main.ts | 5 +++++ 1 file changed, 5 insertions(+) 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());