Disable patch-fetch

parent 4c21a71d
...@@ -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,
......
...@@ -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 {
......
...@@ -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.
} }
......
...@@ -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
......
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