Skip to content

Commit

Permalink
fix(middleware): disable logging for prefetch pages (#1682)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilielr authored Oct 16, 2024
1 parent 6d3f940 commit f2e0c20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tavla/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ export function middleware(request: NextRequest) {
}

export const config = {
matcher: ['/:id(\\w{20})'],
matcher: [
{
source: '/:id(\\w{20})',
missing: [{ type: 'header', key: 'next-router-prefetch' }],
},
],
}

0 comments on commit f2e0c20

Please sign in to comment.