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
acc80693
Unverified
Commit
acc80693
authored
Oct 15, 2026
by
Niklas Mischkulnig
Committed by
GitHub
Oct 28, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keep old approach for middleware
parent
02205ae1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
get-static-info-including-layouts.ts
packages/next/src/build/get-static-info-including-layouts.ts
+3
-3
setup-dev-bundler.ts
...ges/next/src/server/lib/router-utils/setup-dev-bundler.ts
+8
-10
No files found.
packages/next/src/build/get-static-info-including-layouts.ts
View file @
acc80693
...
@@ -78,7 +78,7 @@ export async function getStaticInfoIncludingLayouts({
...
@@ -78,7 +78,7 @@ export async function getStaticInfoIncludingLayouts({
if
(
process
.
env
.
__NEXT_TEST_MODE
&&
process
.
env
.
IS_TURBOPACK_TEST
)
{
if
(
process
.
env
.
__NEXT_TEST_MODE
&&
process
.
env
.
IS_TURBOPACK_TEST
)
{
/// In the e2e tests, ensure parity between webpack and Turbopack static info
/// In the e2e tests, ensure parity between webpack and Turbopack static info
let
reference
=
await
getStaticInfoIncludingLayouts
Inner
({
let
reference
=
await
getStaticInfoIncludingLayouts
FromSource
({
isInsideAppDir
,
isInsideAppDir
,
pageExtensions
,
pageExtensions
,
pageFilePath
,
pageFilePath
,
...
@@ -154,7 +154,7 @@ export async function getStaticInfoIncludingLayouts({
...
@@ -154,7 +154,7 @@ export async function getStaticInfoIncludingLayouts({
return
readStaticInfo
()
return
readStaticInfo
()
}
}
}
else
{
}
else
{
return
getStaticInfoIncludingLayouts
Inner
({
return
getStaticInfoIncludingLayouts
FromSource
({
isInsideAppDir
,
isInsideAppDir
,
pageExtensions
,
pageExtensions
,
pageFilePath
,
pageFilePath
,
...
@@ -166,7 +166,7 @@ export async function getStaticInfoIncludingLayouts({
...
@@ -166,7 +166,7 @@ export async function getStaticInfoIncludingLayouts({
}
}
}
}
async
function
getStaticInfoIncludingLayoutsInner
({
export
async
function
getStaticInfoIncludingLayoutsFromSource
({
isInsideAppDir
,
isInsideAppDir
,
pageExtensions
,
pageExtensions
,
pageFilePath
,
pageFilePath
,
...
...
packages/next/src/server/lib/router-utils/setup-dev-bundler.ts
View file @
acc80693
...
@@ -124,7 +124,6 @@ import { ensureLeadingSlash } from '../../../shared/lib/page-path/ensure-leading
...
@@ -124,7 +124,6 @@ import { ensureLeadingSlash } from '../../../shared/lib/page-path/ensure-leading
import
{
Lockfile
,
type
DevServerInfo
}
from
'../../../build/lockfile'
import
{
Lockfile
,
type
DevServerInfo
}
from
'../../../build/lockfile'
import
{
deobfuscateText
}
from
'../../../shared/lib/magic-identifier'
import
{
deobfuscateText
}
from
'../../../shared/lib/magic-identifier'
import
{
RouteKind
}
from
'../../route-kind'
import
{
RouteKind
}
from
'../../route-kind'
import
{
Bundler
}
from
'../../../lib/bundler'
export
type
SetupOpts
=
{
export
type
SetupOpts
=
{
renderServer
:
LazyRenderServerInstance
renderServer
:
LazyRenderServerInstance
...
@@ -644,11 +643,15 @@ async function startWatcher(
...
@@ -644,11 +643,15 @@ async function startWatcher(
})
})
if
(
isMiddlewareFile
(
rootFile
))
{
if
(
isMiddlewareFile
(
rootFile
))
{
const
getStaticInfoIncludingLayouts
=
(
// This source watcher runs independently of Turbopack's endpoint writes, so generated
// static info may be missing or stale here.
//
// TODO switch this over to Turbopack emitted static-info.json once we have solved the
// double-watcher race condition situation.
const
getStaticInfoIncludingLayoutsFromSource
=
(
require
(
'../../../build/get-static-info-including-layouts'
)
as
typeof
import
(
'../../../build/get-static-info-including-layouts'
)
require
(
'../../../build/get-static-info-including-layouts'
)
as
typeof
import
(
'../../../build/get-static-info-including-layouts'
)
).
getStaticInfoIncludingLayouts
).
getStaticInfoIncludingLayoutsFromSource
const
staticInfo
=
await
getStaticInfoIncludingLayouts
({
const
staticInfo
=
await
getStaticInfoIncludingLayoutsFromSource
({
dir
,
pageFilePath
:
fileName
,
pageFilePath
:
fileName
,
config
:
nextConfig
,
config
:
nextConfig
,
appDir
:
appDir
,
appDir
:
appDir
,
...
@@ -656,11 +659,6 @@ async function startWatcher(
...
@@ -656,11 +659,6 @@ async function startWatcher(
isDev
:
true
,
isDev
:
true
,
isInsideAppDir
:
isAppPath
,
isInsideAppDir
:
isAppPath
,
pageExtensions
:
nextConfig
.
pageExtensions
,
pageExtensions
:
nextConfig
.
pageExtensions
,
bundler
:
opts
?.
turbo
?
Bundler
.
Turbopack
:
process
.
env
.
NEXT_RSPACK
?
Bundler
.
Rspack
:
Bundler
.
Webpack
,
})
})
if
(
nextConfig
.
output
===
'export'
)
{
if
(
nextConfig
.
output
===
'export'
)
{
Log
.
error
(
Log
.
error
(
...
...
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