Disable patch-fetch

parent 4c21a71d
......@@ -863,7 +863,7 @@ export async function buildAppStaticPaths({
)
}
ComponentMod.patchFetch()
// ComponentMod.patchFetch()
const incrementalCache = await createIncrementalCache({
dir,
......
......@@ -1901,7 +1901,7 @@ async function renderToHTMLOrFlightImpl(
serverModuleMap,
})
ComponentMod.patchFetch()
// ComponentMod.patchFetch()
// Pull out the hooks/references from the component.
const {
......
......@@ -387,7 +387,7 @@ export default class NextNodeServer extends BaseServer<
for (const page of Object.keys(appPathsManifest || {})) {
try {
const { ComponentMod } = await loadComponents({
await loadComponents({
distDir: this.distDir,
page,
isAppPath: true,
......@@ -398,7 +398,7 @@ export default class NextNodeServer extends BaseServer<
// 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
// too late and there won't be any caching behaviors
ComponentMod.patchFetch()
// ComponentMod.patchFetch()
} catch (_err) {
// Intentionally ignored because this is a preload step.
}
......
......@@ -19,7 +19,7 @@ import {
} from '../../async-storage/work-store'
import { type HTTP_METHOD, HTTP_METHODS, isHTTPMethod } from '../../web/http'
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 { AppRouteRouteHandlersSpan } from '../../lib/trace/constants'
import * as Log from '../../../build/output/log'
......@@ -313,10 +313,10 @@ export class AppRouteRouteModule extends RouteModule<
const cacheComponentsEnabled = !!context.renderOpts.cacheComponents
// Patch the global fetch.
patchFetch({
workAsyncStorage: this.workAsyncStorage,
workUnitAsyncStorage: this.workUnitAsyncStorage,
})
// patchFetch({
// workAsyncStorage: this.workAsyncStorage,
// workUnitAsyncStorage: this.workUnitAsyncStorage,
// })
const handlerContext: AppRouteHandlerFnContext = {
params: context.params
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment