From 0e73a586843b2cf05fc8fc42d6fd389bcb1b3e47 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Fri, 10 May 2024 11:10:20 +0200 Subject: [PATCH] fix middleware --- packages/next-swc/crates/next-core/src/next_server/context.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/next-swc/crates/next-core/src/next_server/context.rs b/packages/next-swc/crates/next-core/src/next_server/context.rs index 6679fe8b79437..6df6489ca1d4e 100644 --- a/packages/next-swc/crates/next-core/src/next_server/context.rs +++ b/packages/next-swc/crates/next-core/src/next_server/context.rs @@ -105,6 +105,7 @@ impl ServerContextType { ServerContextType::AppRSC { .. } | ServerContextType::AppRoute { .. } | ServerContextType::PagesApi { .. } + | ServerContextType::Middleware { .. } ) } }