Unverified Commit 3d85af96 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Expose durableUseCacheEntries config in workStore (#97926)

https://github.com/vercel/next.js/pull/95233 needs this to decide
whether to perform the manifest lookup.
parent 89d017ea
...@@ -2285,6 +2285,9 @@ export default async function build( ...@@ -2285,6 +2285,9 @@ export default async function build(
cacheComponents: isAppCacheComponentsEnabled, cacheComponents: isAppCacheComponentsEnabled,
authInterrupts: isAuthInterruptsEnabled, authInterrupts: isAuthInterruptsEnabled,
useCacheTimeout: config.experimental.useCacheTimeout, useCacheTimeout: config.experimental.useCacheTimeout,
durableUseCacheEntries: Boolean(
config.experimental.durableUseCacheEntries
),
staticPageGenerationTimeout: config.staticPageGenerationTimeout, staticPageGenerationTimeout: config.staticPageGenerationTimeout,
httpAgentOptions: config.httpAgentOptions, httpAgentOptions: config.httpAgentOptions,
locales: config.i18n?.locales, locales: config.i18n?.locales,
...@@ -2517,6 +2520,9 @@ export default async function build( ...@@ -2517,6 +2520,9 @@ export default async function build(
authInterrupts: isAuthInterruptsEnabled, authInterrupts: isAuthInterruptsEnabled,
useCacheTimeout: useCacheTimeout:
config.experimental.useCacheTimeout, config.experimental.useCacheTimeout,
durableUseCacheEntries: Boolean(
config.experimental.durableUseCacheEntries
),
staticPageGenerationTimeout: staticPageGenerationTimeout:
config.staticPageGenerationTimeout, config.staticPageGenerationTimeout,
cacheHandler: config.cacheHandler, cacheHandler: config.cacheHandler,
......
...@@ -823,6 +823,7 @@ export async function buildAppStaticPaths({ ...@@ -823,6 +823,7 @@ export async function buildAppStaticPaths({
cacheComponents, cacheComponents,
authInterrupts, authInterrupts,
useCacheTimeout, useCacheTimeout,
durableUseCacheEntries,
staticPageGenerationTimeout, staticPageGenerationTimeout,
segments, segments,
isrFlushToDisk, isrFlushToDisk,
...@@ -845,6 +846,7 @@ export async function buildAppStaticPaths({ ...@@ -845,6 +846,7 @@ export async function buildAppStaticPaths({
cacheComponents: boolean cacheComponents: boolean
authInterrupts: boolean authInterrupts: boolean
useCacheTimeout: number useCacheTimeout: number
durableUseCacheEntries: boolean
staticPageGenerationTimeout: number staticPageGenerationTimeout: number
segments: readonly Readonly<AppSegment>[] segments: readonly Readonly<AppSegment>[]
distDir: string distDir: string
...@@ -910,6 +912,7 @@ export async function buildAppStaticPaths({ ...@@ -910,6 +912,7 @@ export async function buildAppStaticPaths({
experimental: { experimental: {
authInterrupts, authInterrupts,
useCacheTimeout, useCacheTimeout,
durableUseCacheEntries,
}, },
waitUntil: afterRunner.context.waitUntil, waitUntil: afterRunner.context.waitUntil,
onClose: afterRunner.context.onClose, onClose: afterRunner.context.onClose,
......
...@@ -948,6 +948,9 @@ export function createAppPageEntrypoint({ ...@@ -948,6 +948,9 @@ export function createAppPageEntrypoint({
nextConfig.experimental.serverComponentsHmrCancellation nextConfig.experimental.serverComponentsHmrCancellation
), ),
useCacheTimeout: nextConfig.experimental.useCacheTimeout, useCacheTimeout: nextConfig.experimental.useCacheTimeout,
durableUseCacheEntries: Boolean(
nextConfig.experimental.durableUseCacheEntries
),
cachedNavigations: cachedNavigations:
nextConfig.experimental.cachedNavigations ?? false, nextConfig.experimental.cachedNavigations ?? false,
clientTraceMetadata: clientTraceMetadata:
......
...@@ -237,6 +237,9 @@ export async function handler( ...@@ -237,6 +237,9 @@ export async function handler(
experimental: { experimental: {
authInterrupts: Boolean(nextConfig.experimental.authInterrupts), authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
useCacheTimeout: nextConfig.experimental.useCacheTimeout, useCacheTimeout: nextConfig.experimental.useCacheTimeout,
durableUseCacheEntries: Boolean(
nextConfig.experimental.durableUseCacheEntries
),
}, },
cacheComponents: Boolean(nextConfig.cacheComponents), cacheComponents: Boolean(nextConfig.cacheComponents),
validationLevel: nextConfig.experimental.instantInsights.validationLevel, validationLevel: nextConfig.experimental.instantInsights.validationLevel,
......
...@@ -180,6 +180,9 @@ async function requestHandler( ...@@ -180,6 +180,9 @@ async function requestHandler(
// no-op. // no-op.
serverComponentsHmrCancellation: false, serverComponentsHmrCancellation: false,
useCacheTimeout: nextConfig.experimental.useCacheTimeout, useCacheTimeout: nextConfig.experimental.useCacheTimeout,
durableUseCacheEntries: Boolean(
nextConfig.experimental.durableUseCacheEntries
),
cachedNavigations: nextConfig.experimental.cachedNavigations ?? false, cachedNavigations: nextConfig.experimental.cachedNavigations ?? false,
clientTraceMetadata: clientTraceMetadata:
nextConfig.experimental.clientTraceMetadata || ([] as any), nextConfig.experimental.clientTraceMetadata || ([] as any),
......
...@@ -699,6 +699,7 @@ export async function isPageStatic({ ...@@ -699,6 +699,7 @@ export async function isPageStatic({
cacheComponents, cacheComponents,
authInterrupts, authInterrupts,
useCacheTimeout, useCacheTimeout,
durableUseCacheEntries,
staticPageGenerationTimeout, staticPageGenerationTimeout,
originalAppPath, originalAppPath,
isrFlushToDisk, isrFlushToDisk,
...@@ -718,6 +719,7 @@ export async function isPageStatic({ ...@@ -718,6 +719,7 @@ export async function isPageStatic({
cacheComponents: boolean cacheComponents: boolean
authInterrupts: boolean authInterrupts: boolean
useCacheTimeout: number useCacheTimeout: number
durableUseCacheEntries: boolean
staticPageGenerationTimeout: number staticPageGenerationTimeout: number
configFileName: string configFileName: string
httpAgentOptions: NextConfigComplete['httpAgentOptions'] httpAgentOptions: NextConfigComplete['httpAgentOptions']
...@@ -904,6 +906,7 @@ export async function isPageStatic({ ...@@ -904,6 +906,7 @@ export async function isPageStatic({
cacheComponents, cacheComponents,
authInterrupts, authInterrupts,
useCacheTimeout, useCacheTimeout,
durableUseCacheEntries,
staticPageGenerationTimeout, staticPageGenerationTimeout,
segments, segments,
distDir, distDir,
......
...@@ -525,6 +525,9 @@ async function exportAppImpl( ...@@ -525,6 +525,9 @@ async function exportAppImpl(
authInterrupts: !!nextConfig.experimental.authInterrupts, authInterrupts: !!nextConfig.experimental.authInterrupts,
reactBrowserBailout: nextConfig.experimental.reactBrowserBailout ?? false, reactBrowserBailout: nextConfig.experimental.reactBrowserBailout ?? false,
useCacheTimeout: nextConfig.experimental.useCacheTimeout, useCacheTimeout: nextConfig.experimental.useCacheTimeout,
durableUseCacheEntries: Boolean(
nextConfig.experimental.durableUseCacheEntries
),
cachedNavigations: nextConfig.experimental.cachedNavigations ?? false, cachedNavigations: nextConfig.experimental.cachedNavigations ?? false,
maxPostponedStateSizeBytes: parseMaxPostponedStateSize( maxPostponedStateSizeBytes: parseMaxPostponedStateSize(
nextConfig.experimental.maxPostponedStateSize nextConfig.experimental.maxPostponedStateSize
......
...@@ -46,7 +46,10 @@ export async function exportAppRoute( ...@@ -46,7 +46,10 @@ export async function exportAppRoute(
cacheComponents: boolean, cacheComponents: boolean,
staticPageGenerationTimeout: number, staticPageGenerationTimeout: number,
experimental: Required< experimental: Required<
Pick<ExperimentalConfig, 'authInterrupts' | 'useCacheTimeout'> Pick<
ExperimentalConfig,
'authInterrupts' | 'useCacheTimeout' | 'durableUseCacheEntries'
>
>, >,
buildId: string, buildId: string,
deploymentId: string deploymentId: string
......
...@@ -6577,6 +6577,8 @@ function buildDevValidationWorkStore( ...@@ -6577,6 +6577,8 @@ function buildDevValidationWorkStore(
forceStatic: message.forceStatic, forceStatic: message.forceStatic,
isDraftMode: message.request.isDraftMode, isDraftMode: message.request.isDraftMode,
useCacheTimeout: message.nextConfigSerializable.useCacheTimeout, useCacheTimeout: message.nextConfigSerializable.useCacheTimeout,
durableUseCacheEntries:
message.nextConfigSerializable.durableUseCacheEntries,
staticPageGenerationTimeout: staticPageGenerationTimeout:
message.nextConfigSerializable.staticPageGenerationTimeout, message.nextConfigSerializable.staticPageGenerationTimeout,
cacheLifeProfiles: message.nextConfigSerializable.cacheLifeProfiles, cacheLifeProfiles: message.nextConfigSerializable.cacheLifeProfiles,
...@@ -8224,6 +8226,7 @@ async function validateInstantConfigInBuildWithSample( ...@@ -8224,6 +8226,7 @@ async function validateInstantConfigInBuildWithSample(
incrementalCache: outerWorkStore.incrementalCache, incrementalCache: outerWorkStore.incrementalCache,
cacheLifeProfiles: outerWorkStore.cacheLifeProfiles, cacheLifeProfiles: outerWorkStore.cacheLifeProfiles,
useCacheTimeout: outerWorkStore.useCacheTimeout, useCacheTimeout: outerWorkStore.useCacheTimeout,
durableUseCacheEntries: outerWorkStore.durableUseCacheEntries,
staticPageGenerationTimeout: outerWorkStore.staticPageGenerationTimeout, staticPageGenerationTimeout: outerWorkStore.staticPageGenerationTimeout,
isBuildTimePrerendering: false, isBuildTimePrerendering: false,
fetchCache: outerWorkStore.fetchCache, fetchCache: outerWorkStore.fetchCache,
......
...@@ -122,6 +122,7 @@ export interface DevValidationInstallFields { ...@@ -122,6 +122,7 @@ export interface DevValidationInstallFields {
httpAgentOptions: NextConfigComplete['httpAgentOptions'] httpAgentOptions: NextConfigComplete['httpAgentOptions']
cacheLifeProfiles: NextConfigComplete['cacheLife'] cacheLifeProfiles: NextConfigComplete['cacheLife']
useCacheTimeout: number useCacheTimeout: number
durableUseCacheEntries: boolean
staticPageGenerationTimeout: number staticPageGenerationTimeout: number
} }
} }
......
...@@ -169,6 +169,7 @@ export interface RenderOptsPartial { ...@@ -169,6 +169,7 @@ export interface RenderOptsPartial {
reactBrowserBailout: boolean reactBrowserBailout: boolean
serverComponentsHmrCancellation?: boolean serverComponentsHmrCancellation?: boolean
useCacheTimeout: number useCacheTimeout: number
durableUseCacheEntries: boolean
cachedNavigations: boolean cachedNavigations: boolean
/** /**
......
...@@ -29,6 +29,7 @@ export interface WorkStore { ...@@ -29,6 +29,7 @@ export interface WorkStore {
readonly incrementalCache?: IncrementalCache readonly incrementalCache?: IncrementalCache
readonly cacheLifeProfiles: ResolvedCacheLifeProfiles readonly cacheLifeProfiles: ResolvedCacheLifeProfiles
readonly useCacheTimeout: number readonly useCacheTimeout: number
readonly durableUseCacheEntries: boolean
readonly staticPageGenerationTimeout: number readonly staticPageGenerationTimeout: number
readonly isOnDemandRevalidate?: boolean readonly isOnDemandRevalidate?: boolean
......
...@@ -41,7 +41,10 @@ export type WorkStoreContext = { ...@@ -41,7 +41,10 @@ export type WorkStoreContext = {
pendingWaitUntil?: Promise<any> pendingWaitUntil?: Promise<any>
experimental: Pick< experimental: Pick<
RenderOpts['experimental'], RenderOpts['experimental'],
'isRoutePPREnabled' | 'authInterrupts' | 'useCacheTimeout' | 'isRoutePPREnabled'
| 'authInterrupts'
| 'useCacheTimeout'
| 'durableUseCacheEntries'
> >
/** /**
...@@ -119,6 +122,7 @@ function createWorkStoreImpl( ...@@ -119,6 +122,7 @@ function createWorkStoreImpl(
renderOpts.incrementalCache || (globalThis as any).__incrementalCache, renderOpts.incrementalCache || (globalThis as any).__incrementalCache,
cacheLifeProfiles: renderOpts.cacheLifeProfiles, cacheLifeProfiles: renderOpts.cacheLifeProfiles,
useCacheTimeout: renderOpts.experimental.useCacheTimeout, useCacheTimeout: renderOpts.experimental.useCacheTimeout,
durableUseCacheEntries: renderOpts.experimental.durableUseCacheEntries,
staticPageGenerationTimeout: renderOpts.staticPageGenerationTimeout, staticPageGenerationTimeout: renderOpts.staticPageGenerationTimeout,
isBuildTimePrerendering: renderOpts.isBuildTimePrerendering, isBuildTimePrerendering: renderOpts.isBuildTimePrerendering,
fetchCache: renderOpts.fetchCache, fetchCache: renderOpts.fetchCache,
......
...@@ -614,6 +614,9 @@ export default abstract class Server< ...@@ -614,6 +614,9 @@ export default abstract class Server<
serverComponentsHmrCancellation: serverComponentsHmrCancellation:
this.nextConfig.experimental.serverComponentsHmrCancellation, this.nextConfig.experimental.serverComponentsHmrCancellation,
useCacheTimeout: this.nextConfig.experimental.useCacheTimeout, useCacheTimeout: this.nextConfig.experimental.useCacheTimeout,
durableUseCacheEntries: Boolean(
this.nextConfig.experimental.durableUseCacheEntries
),
cachedNavigations: cachedNavigations:
this.nextConfig.experimental.cachedNavigations ?? false, this.nextConfig.experimental.cachedNavigations ?? false,
maxPostponedStateSizeBytes: parseMaxPostponedStateSize( maxPostponedStateSizeBytes: parseMaxPostponedStateSize(
......
...@@ -2430,6 +2430,7 @@ export interface NextConfigRuntime { ...@@ -2430,6 +2430,7 @@ export interface NextConfigRuntime {
| 'authInterrupts' | 'authInterrupts'
| 'reactBrowserBailout' | 'reactBrowserBailout'
| 'useCacheTimeout' | 'useCacheTimeout'
| 'durableUseCacheEntries'
| 'clientTraceMetadata' | 'clientTraceMetadata'
| 'clientParamParsingOrigins' | 'clientParamParsingOrigins'
| 'allowedRevalidateHeaderKeys' | 'allowedRevalidateHeaderKeys'
...@@ -2498,6 +2499,7 @@ export function getNextConfigRuntime( ...@@ -2498,6 +2499,7 @@ export function getNextConfigRuntime(
authInterrupts: ex.authInterrupts, authInterrupts: ex.authInterrupts,
reactBrowserBailout: ex.reactBrowserBailout, reactBrowserBailout: ex.reactBrowserBailout,
useCacheTimeout: ex.useCacheTimeout, useCacheTimeout: ex.useCacheTimeout,
durableUseCacheEntries: ex.durableUseCacheEntries,
clientTraceMetadata: ex.clientTraceMetadata, clientTraceMetadata: ex.clientTraceMetadata,
clientParamParsingOrigins: ex.clientParamParsingOrigins, clientParamParsingOrigins: ex.clientParamParsingOrigins,
allowedRevalidateHeaderKeys: ex.allowedRevalidateHeaderKeys, allowedRevalidateHeaderKeys: ex.allowedRevalidateHeaderKeys,
......
...@@ -242,4 +242,40 @@ describe('loadConfig', () => { ...@@ -242,4 +242,40 @@ describe('loadConfig', () => {
expect(result.experimental.cssChunking).toBe('graph') expect(result.experimental.cssChunking).toBe('graph')
}) })
}) })
describe('experimental.durableUseCacheEntries', () => {
const originalTurbopack = process.env.TURBOPACK
afterEach(() => {
if (originalTurbopack === undefined) {
delete process.env.TURBOPACK
} else {
process.env.TURBOPACK = originalTurbopack
}
})
it('throws when using webpack', async () => {
delete process.env.TURBOPACK
await expect(
loadConfig(PHASE_PRODUCTION_BUILD, __dirname, {
customConfig: {
experimental: { durableUseCacheEntries: true },
},
})
).rejects.toThrow(/only supported with Turbopack/)
})
it('is preserved when using Turbopack', async () => {
process.env.TURBOPACK = '1'
const result = await loadConfig(PHASE_PRODUCTION_BUILD, __dirname, {
customConfig: {
experimental: { durableUseCacheEntries: true },
},
})
expect(result.experimental.durableUseCacheEntries).toBe(true)
})
})
}) })
...@@ -548,6 +548,13 @@ function assignDefaultsAndValidate( ...@@ -548,6 +548,13 @@ function assignDefaultsAndValidate(
// Only validate during build/dev — `next start` doesn't pick a bundler and would otherwise // Only validate during build/dev — `next start` doesn't pick a bundler and would otherwise
// see `process.env.TURBOPACK` unset and reject a valid `cssChunking: "graph"` config. // see `process.env.TURBOPACK` unset and reject a valid `cssChunking: "graph"` config.
if (phase !== PHASE_PRODUCTION_SERVER && phase !== PHASE_INFO) { if (phase !== PHASE_PRODUCTION_SERVER && phase !== PHASE_INFO) {
if (result.experimental.durableUseCacheEntries && !process.env.TURBOPACK) {
throw new Error(
`\`experimental.durableUseCacheEntries: true\` is only supported with Turbopack. ` +
`Please remove the option or run Next.js with Turbopack in ${configFileName}.`
)
}
const cssChunkingValue = result.experimental.cssChunking const cssChunkingValue = result.experimental.cssChunking
const cssChunkingMode = resolveCssChunkingMode(cssChunkingValue) const cssChunkingMode = resolveCssChunkingMode(cssChunkingValue)
if (cssChunkingMode === 'graph' && !process.env.TURBOPACK) { if (cssChunkingMode === 'graph' && !process.env.TURBOPACK) {
......
...@@ -222,6 +222,9 @@ export function installDevValidationWorker(options: InstallOptions): void { ...@@ -222,6 +222,9 @@ export function installDevValidationWorker(options: InstallOptions): void {
httpAgentOptions: nextConfig.httpAgentOptions, httpAgentOptions: nextConfig.httpAgentOptions,
cacheLifeProfiles: nextConfig.cacheLife, cacheLifeProfiles: nextConfig.cacheLife,
useCacheTimeout: nextConfig.experimental.useCacheTimeout, useCacheTimeout: nextConfig.experimental.useCacheTimeout,
durableUseCacheEntries: Boolean(
nextConfig.experimental.durableUseCacheEntries
),
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout, staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
}, },
} }
......
...@@ -772,6 +772,9 @@ export default class DevServer extends Server { ...@@ -772,6 +772,9 @@ export default class DevServer extends Server {
deploymentId: this.deploymentId, deploymentId: this.deploymentId,
authInterrupts: Boolean(this.nextConfig.experimental.authInterrupts), authInterrupts: Boolean(this.nextConfig.experimental.authInterrupts),
useCacheTimeout: this.nextConfig.experimental.useCacheTimeout, useCacheTimeout: this.nextConfig.experimental.useCacheTimeout,
durableUseCacheEntries: Boolean(
this.nextConfig.experimental.durableUseCacheEntries
),
staticPageGenerationTimeout: staticPageGenerationTimeout:
this.nextConfig.staticPageGenerationTimeout, this.nextConfig.staticPageGenerationTimeout,
sriEnabled: Boolean(this.nextConfig.experimental.sri?.algorithm), sriEnabled: Boolean(this.nextConfig.experimental.sri?.algorithm),
......
...@@ -54,6 +54,7 @@ export async function loadStaticPaths({ ...@@ -54,6 +54,7 @@ export async function loadStaticPaths({
deploymentId, deploymentId,
authInterrupts, authInterrupts,
useCacheTimeout, useCacheTimeout,
durableUseCacheEntries,
staticPageGenerationTimeout, staticPageGenerationTimeout,
sriEnabled, sriEnabled,
}: { }: {
...@@ -78,6 +79,7 @@ export async function loadStaticPaths({ ...@@ -78,6 +79,7 @@ export async function loadStaticPaths({
deploymentId: string deploymentId: string
authInterrupts: boolean authInterrupts: boolean
useCacheTimeout: number useCacheTimeout: number
durableUseCacheEntries: boolean
staticPageGenerationTimeout: number staticPageGenerationTimeout: number
sriEnabled: boolean sriEnabled: boolean
}): Promise<StaticPathsResult> { }): Promise<StaticPathsResult> {
...@@ -149,6 +151,7 @@ export async function loadStaticPaths({ ...@@ -149,6 +151,7 @@ export async function loadStaticPaths({
deploymentId, deploymentId,
authInterrupts, authInterrupts,
useCacheTimeout, useCacheTimeout,
durableUseCacheEntries,
staticPageGenerationTimeout, staticPageGenerationTimeout,
rootParamKeys, rootParamKeys,
}) })
......
...@@ -187,6 +187,9 @@ export function installUseCacheProbe(options: InstallOptions): void { ...@@ -187,6 +187,9 @@ export function installUseCacheProbe(options: InstallOptions): void {
httpAgentOptions: nextConfig.httpAgentOptions, httpAgentOptions: nextConfig.httpAgentOptions,
cacheLifeProfiles: nextConfig.cacheLife, cacheLifeProfiles: nextConfig.cacheLife,
useCacheTimeout: nextConfig.experimental.useCacheTimeout, useCacheTimeout: nextConfig.experimental.useCacheTimeout,
durableUseCacheEntries: Boolean(
nextConfig.experimental.durableUseCacheEntries
),
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout, staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
}, },
timeoutMs: args.timeoutMs, timeoutMs: args.timeoutMs,
......
...@@ -57,6 +57,7 @@ export type ProbeMessage = { ...@@ -57,6 +57,7 @@ export type ProbeMessage = {
httpAgentOptions: NextConfigComplete['httpAgentOptions'] httpAgentOptions: NextConfigComplete['httpAgentOptions']
cacheLifeProfiles: NextConfigComplete['cacheLife'] cacheLifeProfiles: NextConfigComplete['cacheLife']
useCacheTimeout: number useCacheTimeout: number
durableUseCacheEntries: boolean
staticPageGenerationTimeout: number staticPageGenerationTimeout: number
} }
timeoutMs: number timeoutMs: number
...@@ -202,6 +203,7 @@ function buildProbeWorkStore(msg: ProbeMessage): WorkStore { ...@@ -202,6 +203,7 @@ function buildProbeWorkStore(msg: ProbeMessage): WorkStore {
useCacheProbeMode: { timeoutMs: msg.timeoutMs }, useCacheProbeMode: { timeoutMs: msg.timeoutMs },
isDraftMode: msg.request.isDraftMode, isDraftMode: msg.request.isDraftMode,
useCacheTimeout: msg.nextConfigSerializable.useCacheTimeout, useCacheTimeout: msg.nextConfigSerializable.useCacheTimeout,
durableUseCacheEntries: msg.nextConfigSerializable.durableUseCacheEntries,
staticPageGenerationTimeout: staticPageGenerationTimeout:
msg.nextConfigSerializable.staticPageGenerationTimeout, msg.nextConfigSerializable.staticPageGenerationTimeout,
cacheLifeProfiles: msg.nextConfigSerializable.cacheLifeProfiles, cacheLifeProfiles: msg.nextConfigSerializable.cacheLifeProfiles,
......
...@@ -341,6 +341,7 @@ export async function adapter( ...@@ -341,6 +341,7 @@ export async function adapter(
// the cache fill will time out immediately and surface the // the cache fill will time out immediately and surface the
// bug. // bug.
useCacheTimeout: 0, useCacheTimeout: 0,
durableUseCacheEntries: false,
}, },
waitUntil, waitUntil,
onClose: closeController.onClose.bind(closeController), onClose: closeController.onClose.bind(closeController),
......
...@@ -132,6 +132,7 @@ export class EdgeRouteModuleWrapper { ...@@ -132,6 +132,7 @@ export class EdgeRouteModuleWrapper {
// never read. 0 is a sentinel: if something ever reads it, the cache // never read. 0 is a sentinel: if something ever reads it, the cache
// fill will time out immediately and surface the bug. // fill will time out immediately and surface the bug.
useCacheTimeout: 0, useCacheTimeout: 0,
durableUseCacheEntries: false,
}, },
cacheLifeProfiles: nextConfig.cacheLife, cacheLifeProfiles: nextConfig.cacheLife,
// Edge runtime doesn't do static generation, so this value does not // Edge runtime doesn't do static generation, so this value does not
......
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