From 51841e5e9c556a2714528fc9a254239001dfd5f3 Mon Sep 17 00:00:00 2001 From: Benny Joo Date: Fri, 13 Dec 2024 02:13:08 -0500 Subject: [PATCH] fix: ensure migrated pages are added to config.matcher in middleware (#18153) --- apps/web/middleware.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts index 95556aed89..7e8c586127 100644 --- a/apps/web/middleware.ts +++ b/apps/web/middleware.ts @@ -153,6 +153,13 @@ export const config = { // Next.js Doesn't support spread operator in config matcher, so, we must list all paths explicitly here. // https://github.com/vercel/next.js/discussions/42458 matcher: [ + "/d/:path*", + "/more/:path*", + "/maintenance/:path*", + "/enterprise/:path*", + "/upgrade/:path*", + "/connect-and-join/:path*", + "/insights/:path*", "/:path*/embed", "/api/auth/signup", "/api/trpc/:path*",