Skip to content

Scheduling infrastructure for absolutely everyone.

fix: ensure migrated pages are added to config.matcher in middleware (#18153)

Benny Joo51841e5e9c55
diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts
index 95556aed892..7e8c5861274 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*",