From 07da72a8de26f5194a40d8c502daf3c2040c15f2 Mon Sep 17 00:00:00 2001 From: Siarhei Balonikau Date: Fri, 24 Jan 2025 14:53:12 +0400 Subject: [PATCH] feature/EPMGCIP-166/Debug --- src/middleware.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/middleware.ts b/src/middleware.ts index 8d7a683..202060d 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -6,9 +6,10 @@ import { routing } from './i18n/routing'; export default function middleware(req: NextRequest) { const handleI18nRouting = createMiddleware(routing); const response = handleI18nRouting(req); - + console.log('req', req); const requestPathname = req.nextUrl.pathname; response.headers.set('x-pathname', requestPathname); + console.log('response', response); return response; }