Skip to content

Commit

Permalink
disable flushToDisk during generateStaticParams (#58871)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
ztanner authored Nov 24, 2023
1 parent 4465b18 commit e1cb3f5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/next/src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,9 @@ export default async function build(
pagesDir: true,
appDir: true,
fetchCache: true,
flushToDisk: config.experimental.isrFlushToDisk,
flushToDisk: ciEnvironment.hasNextSupport
? false
: config.experimental.isrFlushToDisk,
serverDistDir: path.join(distDir, 'server'),
fetchCacheKeyPrefix: config.experimental.fetchCacheKeyPrefix,
maxMemoryCacheSize: config.experimental.isrMemoryCacheSize,
Expand Down Expand Up @@ -1611,7 +1613,9 @@ export default async function build(
pageType,
incrementalCacheHandlerPath:
config.experimental.incrementalCacheHandlerPath,
isrFlushToDisk: config.experimental.isrFlushToDisk,
isrFlushToDisk: ciEnvironment.hasNextSupport
? false
: config.experimental.isrFlushToDisk,
maxMemoryCacheSize:
config.experimental.isrMemoryCacheSize,
nextConfigOutput: config.output,
Expand Down

0 comments on commit e1cb3f5

Please sign in to comment.