-
Notifications
You must be signed in to change notification settings - Fork 26k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[turbopack]: Serve
_devMiddlewareManifest.json
from router (#50241)
This change allows the Turbopack's node router to serve `_next/static/development/_devMiddlewareManifest.json` file, which is just the matchers for middleware routes. This is usually handled by the node dev server anyways, but we were filtering out the route so that Turbopack could handle it. But, Turbopack doesn't implement the route matching logic at all, it's all handled by our node router. So Turbopack can't know what the middleware matchers are. Having the router just handle this like the normal dev server is both easy and efficient (I don't want to spin up _another_ node instance just to transform the matchers into the expected format). Fixes WEB-979 --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
- Loading branch information
1 parent
1079c10
commit 12e22ed
Showing
4 changed files
with
14 additions
and
25 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
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
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
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