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 { .. } ) } }