Skip to content

Commit

Permalink
add middleware entry type (vercel/turborepo#5800)
Browse files Browse the repository at this point in the history
### Description

next.js needs that

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
  • Loading branch information
sokra authored Aug 24, 2023
1 parent b481d44 commit 359b4e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/turbopack-core/src/reference_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -81,6 +83,7 @@ pub enum EntryReferenceSubType {
AppPage,
AppRoute,
AppClientComponent,
Middleware,
Runtime,
Custom(u8),
Undefined,
Expand Down

0 comments on commit 359b4e4

Please sign in to comment.