Skip to content

Commit

Permalink
feature/EPMGCIP-166/Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Siarhei Balonikau committed Jan 24, 2025
1 parent d3f3dab commit 07da72a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 07da72a

Please sign in to comment.