Skip to content

Commit

Permalink
Be explicit about middleware matching
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Dec 21, 2023
1 parent bfc4955 commit 049bd75
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,12 @@ export function middleware (request) {
}
return multiAuthMiddleware(request)
}

export const config = {
matcher: [
// referrals
'/(.*/|)r/([\\w_]+)([?#]?.*)',
// account switching
'/api/graphql', '/_next/data/(.*)'
]
}

0 comments on commit 049bd75

Please sign in to comment.