From 359b4e409a50142447c792a98bc6180b40ec7d3e Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Thu, 24 Aug 2023 21:37:34 +0200 Subject: [PATCH] add middleware entry type (vercel/turbo#5800) ### Description next.js needs that ### Testing Instructions --- crates/turbopack-core/src/reference_type.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/turbopack-core/src/reference_type.rs b/crates/turbopack-core/src/reference_type.rs index 390921ba63191..67b7be0b82b1e 100644 --- a/crates/turbopack-core/src/reference_type.rs +++ b/crates/turbopack-core/src/reference_type.rs @@ -72,6 +72,8 @@ pub enum TypeScriptReferenceSubType { Undefined, } +// TODO(sokra) this was next.js specific values. We want to solve this in a +// different way. #[turbo_tasks::value(serialization = "auto_for_input")] #[derive(Debug, Clone, PartialOrd, Ord, Hash)] pub enum EntryReferenceSubType { @@ -81,6 +83,7 @@ pub enum EntryReferenceSubType { AppPage, AppRoute, AppClientComponent, + Middleware, Runtime, Custom(u8), Undefined,