Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
439279c2
Unverified
Commit
439279c2
authored
Sep 15, 2025
by
Tim Neutkens
Committed by
GitHub
Sep 15, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Turbopack: Remove matchers.reload() call on each request" (#83819)
Reverts vercel/next.js#83720
parent
90676585
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
base-server.ts
packages/next/src/server/base-server.ts
+0
-4
dev-route-matcher-manager.ts
...erver/route-matcher-managers/dev-route-matcher-manager.ts
+4
-0
No files found.
packages/next/src/server/base-server.ts
View file @
439279c2
...
...
@@ -606,10 +606,6 @@ export default abstract class Server<
this
.
responseCache
=
this
.
getResponseCache
({
dev
})
}
protected
reloadMatchers
()
{
return
this
.
matchers
.
reload
()
}
private
handleRSCRequest
:
RouteHandler
<
ServerRequest
,
ServerResponse
>
=
(
req
,
_res
,
...
...
packages/next/src/server/route-matcher-managers/dev-route-matcher-manager.ts
View file @
439279c2
...
...
@@ -65,6 +65,10 @@ export class DevRouteMatcherManager extends DefaultRouteMatcherManager {
pathname
:
string
,
options
:
MatchOptions
):
AsyncGenerator
<
RouteMatch
<
RouteDefinition
<
RouteKind
>>
,
null
,
undefined
>
{
// Compile the development routes.
// TODO: we may want to only run this during testing, users won't be fast enough to require this many dir scans
await
super
.
reload
()
// Iterate over the development matches to see if one of them match the
// request path.
for
await
(
const
developmentMatch
of
super
.
matchAll
(
pathname
,
options
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment