Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update logic to handle index of 0 #56

Merged
merged 5 commits into from
Jan 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: avoid trigger increment-views call in link component prefetch
  • Loading branch information
MonsterPi13 committed Jan 23, 2024
commit 7a96495e839bd7e30e061d0ddbad1b8f9a77b2a3
12 changes: 10 additions & 2 deletions src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,13 @@ export function middleware(request, event) {
}

export const config = {
matcher: '/writing/:path/'
}
matcher: [
{
source: "/writing/:path/",
missing: [
{ type: "header", key: "next-router-prefetch" },
{ type: "header", key: "purpose", value: "prefetch" },
],
},
],
};