Unverified Commit e1cb3f54 authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

disable flushToDisk during `generateStaticParams` (#58871)

Follow-up to #58516 where a few spots where missed. This is only
disabled in minimal mode.

[Slack
context](https://vercel.slack.com/archives/C042LHPJ1NX/p1700756778718459)
parent 4465b185
...@@ -1318,7 +1318,9 @@ export default async function build( ...@@ -1318,7 +1318,9 @@ export default async function build(
pagesDir: true, pagesDir: true,
appDir: true, appDir: true,
fetchCache: true, fetchCache: true,
flushToDisk: config.experimental.isrFlushToDisk, flushToDisk: ciEnvironment.hasNextSupport
? false
: config.experimental.isrFlushToDisk,
serverDistDir: path.join(distDir, 'server'), serverDistDir: path.join(distDir, 'server'),
fetchCacheKeyPrefix: config.experimental.fetchCacheKeyPrefix, fetchCacheKeyPrefix: config.experimental.fetchCacheKeyPrefix,
maxMemoryCacheSize: config.experimental.isrMemoryCacheSize, maxMemoryCacheSize: config.experimental.isrMemoryCacheSize,
...@@ -1611,7 +1613,9 @@ export default async function build( ...@@ -1611,7 +1613,9 @@ export default async function build(
pageType, pageType,
incrementalCacheHandlerPath: incrementalCacheHandlerPath:
config.experimental.incrementalCacheHandlerPath, config.experimental.incrementalCacheHandlerPath,
isrFlushToDisk: config.experimental.isrFlushToDisk, isrFlushToDisk: ciEnvironment.hasNextSupport
? false
: config.experimental.isrFlushToDisk,
maxMemoryCacheSize: maxMemoryCacheSize:
config.experimental.isrMemoryCacheSize, config.experimental.isrMemoryCacheSize,
nextConfigOutput: config.output, nextConfigOutput: config.output,
......
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