Be explicit about middleware matching

This commit is contained in:
ekzyis 2023-12-21 13:11:35 +01:00
parent 74304e2f75
commit 3e6748f94b
1 changed files with 9 additions and 0 deletions

View File

@ -57,3 +57,12 @@ export function middleware (request) {
}
return multiAuthMiddleware(request)
}
export const config = {
matcher: [
// referrals
'/(.*/|)r/([\\w_]+)([?#]?.*)',
// account switching
'/api/graphql', '/_next/data/(.*)'
]
}