-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run Middleware within WorkStore (#70808)
The data structure inside WorkStore (formerly StaticGenerationStore) is a mess with a bunch of options (what hidden class?). It's also there to support Route Handlers, App Router Pages and Actions. It should probably be a more specific disjoint union for each use case rather than just optional fields. We could have a separate kind of store for Middleware but it seems like we're going towards Middleware becoming something with same semantics as an App Route Handler. For example, we already support `cookies()`, `headers()`, `after()`, `revalidate` etc. That's why it already has a RequestStore. This becomes a requirement for [moving `AfterContext` context to `WorkStore`](#70806).
- Loading branch information
1 parent
9813061
commit 2f8319b
Showing
1 changed file
with
38 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters