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
f395e97e
Unverified
Commit
f395e97e
authored
Nov 14, 2025
by
Hendrik Liebau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable patch-fetch
parent
4c21a71d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
app.ts
packages/next/src/build/static-paths/app.ts
+1
-1
app-render.tsx
packages/next/src/server/app-render/app-render.tsx
+1
-1
next-server.ts
packages/next/src/server/next-server.ts
+2
-2
module.ts
packages/next/src/server/route-modules/app-route/module.ts
+5
-5
No files found.
packages/next/src/build/static-paths/app.ts
View file @
f395e97e
...
@@ -863,7 +863,7 @@ export async function buildAppStaticPaths({
...
@@ -863,7 +863,7 @@ export async function buildAppStaticPaths({
)
)
}
}
ComponentMod
.
patchFetch
()
//
ComponentMod.patchFetch()
const
incrementalCache
=
await
createIncrementalCache
({
const
incrementalCache
=
await
createIncrementalCache
({
dir
,
dir
,
...
...
packages/next/src/server/app-render/app-render.tsx
View file @
f395e97e
...
@@ -1901,7 +1901,7 @@ async function renderToHTMLOrFlightImpl(
...
@@ -1901,7 +1901,7 @@ async function renderToHTMLOrFlightImpl(
serverModuleMap
,
serverModuleMap
,
})
})
ComponentMod
.
patchFetch
()
//
ComponentMod.patchFetch()
// Pull out the hooks/references from the component.
// Pull out the hooks/references from the component.
const
{
const
{
...
...
packages/next/src/server/next-server.ts
View file @
f395e97e
...
@@ -387,7 +387,7 @@ export default class NextNodeServer extends BaseServer<
...
@@ -387,7 +387,7 @@ export default class NextNodeServer extends BaseServer<
for
(
const
page
of
Object
.
keys
(
appPathsManifest
||
{}))
{
for
(
const
page
of
Object
.
keys
(
appPathsManifest
||
{}))
{
try
{
try
{
const
{
ComponentMod
}
=
await
loadComponents
({
await
loadComponents
({
distDir
:
this
.
distDir
,
distDir
:
this
.
distDir
,
page
,
page
,
isAppPath
:
true
,
isAppPath
:
true
,
...
@@ -398,7 +398,7 @@ export default class NextNodeServer extends BaseServer<
...
@@ -398,7 +398,7 @@ export default class NextNodeServer extends BaseServer<
// we need to ensure fetch is patched before we require the page,
// we need to ensure fetch is patched before we require the page,
// otherwise if the fetch is patched by user code, we will be patching it
// otherwise if the fetch is patched by user code, we will be patching it
// too late and there won't be any caching behaviors
// too late and there won't be any caching behaviors
ComponentMod
.
patchFetch
()
//
ComponentMod.patchFetch()
}
catch
(
_err
)
{
}
catch
(
_err
)
{
// Intentionally ignored because this is a preload step.
// Intentionally ignored because this is a preload step.
}
}
...
...
packages/next/src/server/route-modules/app-route/module.ts
View file @
f395e97e
...
@@ -19,7 +19,7 @@ import {
...
@@ -19,7 +19,7 @@ import {
}
from
'../../async-storage/work-store'
}
from
'../../async-storage/work-store'
import
{
type
HTTP_METHOD
,
HTTP_METHODS
,
isHTTPMethod
}
from
'../../web/http'
import
{
type
HTTP_METHOD
,
HTTP_METHODS
,
isHTTPMethod
}
from
'../../web/http'
import
{
getImplicitTags
,
type
ImplicitTags
}
from
'../../lib/implicit-tags'
import
{
getImplicitTags
,
type
ImplicitTags
}
from
'../../lib/implicit-tags'
import
{
patchFetch
}
from
'../../lib/patch-fetch'
//
import { patchFetch } from '../../lib/patch-fetch'
import
{
getTracer
}
from
'../../lib/trace/tracer'
import
{
getTracer
}
from
'../../lib/trace/tracer'
import
{
AppRouteRouteHandlersSpan
}
from
'../../lib/trace/constants'
import
{
AppRouteRouteHandlersSpan
}
from
'../../lib/trace/constants'
import
*
as
Log
from
'../../../build/output/log'
import
*
as
Log
from
'../../../build/output/log'
...
@@ -313,10 +313,10 @@ export class AppRouteRouteModule extends RouteModule<
...
@@ -313,10 +313,10 @@ export class AppRouteRouteModule extends RouteModule<
const
cacheComponentsEnabled
=
!!
context
.
renderOpts
.
cacheComponents
const
cacheComponentsEnabled
=
!!
context
.
renderOpts
.
cacheComponents
// Patch the global fetch.
// Patch the global fetch.
patchFetch
({
//
patchFetch({
workAsyncStorage
:
this
.
workAsyncStorage
,
//
workAsyncStorage: this.workAsyncStorage,
workUnitAsyncStorage
:
this
.
workUnitAsyncStorage
,
//
workUnitAsyncStorage: this.workUnitAsyncStorage,
})
//
})
const
handlerContext
:
AppRouteHandlerFnContext
=
{
const
handlerContext
:
AppRouteHandlerFnContext
=
{
params
:
context
.
params
params
:
context
.
params
...
...
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