Unverified Commit 52ae69ac authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Rename spr config to ISR (#27379)

parent 5dc5a3fb
...@@ -79,7 +79,7 @@ export type NextConfig = { [key: string]: any } & { ...@@ -79,7 +79,7 @@ export type NextConfig = { [key: string]: any } & {
cpus?: number cpus?: number
plugins?: boolean plugins?: boolean
profiling?: boolean profiling?: boolean
sprFlushToDisk?: boolean isrFlushToDisk?: boolean
reactMode?: 'legacy' | 'concurrent' | 'blocking' reactMode?: 'legacy' | 'concurrent' | 'blocking'
workerThreads?: boolean workerThreads?: boolean
pageEnv?: boolean pageEnv?: boolean
...@@ -152,7 +152,7 @@ export const defaultConfig: NextConfig = { ...@@ -152,7 +152,7 @@ export const defaultConfig: NextConfig = {
), ),
plugins: false, plugins: false,
profiling: false, profiling: false,
sprFlushToDisk: true, isrFlushToDisk: true,
workerThreads: false, workerThreads: false,
pageEnv: false, pageEnv: false,
optimizeImages: false, optimizeImages: false,
......
...@@ -277,7 +277,7 @@ export default class Server { ...@@ -277,7 +277,7 @@ export default class Server {
), ),
locales: this.nextConfig.i18n?.locales, locales: this.nextConfig.i18n?.locales,
max: this.nextConfig.experimental.isrMemoryCacheSize, max: this.nextConfig.experimental.isrMemoryCacheSize,
flushToDisk: !minimalMode && this.nextConfig.experimental.sprFlushToDisk, flushToDisk: !minimalMode && this.nextConfig.experimental.isrFlushToDisk,
}) })
this.responseCache = new ResponseCache(this.incrementalCache) this.responseCache = new ResponseCache(this.incrementalCache)
......
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