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; }