From 049bd752bab0d76df19ce5793631621220dffa2e Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 21 Dec 2023 13:11:35 +0100 Subject: [PATCH] Be explicit about middleware matching --- middleware.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/middleware.js b/middleware.js index dd9f47d16..faca43f7b 100644 --- a/middleware.js +++ b/middleware.js @@ -57,3 +57,12 @@ export function middleware (request) { } return multiAuthMiddleware(request) } + +export const config = { + matcher: [ + // referrals + '/(.*/|)r/([\\w_]+)([?#]?.*)', + // account switching + '/api/graphql', '/_next/data/(.*)' + ] +}