Skip to content

Commit

Permalink
Rename spr config to ISR (#27379)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk authored Jul 22, 2021
1 parent 5dc5a3f commit 52ae69a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/next/server/config-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export type NextConfig = { [key: string]: any } & {
cpus?: number
plugins?: boolean
profiling?: boolean
sprFlushToDisk?: boolean
isrFlushToDisk?: boolean
reactMode?: 'legacy' | 'concurrent' | 'blocking'
workerThreads?: boolean
pageEnv?: boolean
Expand Down Expand Up @@ -152,7 +152,7 @@ export const defaultConfig: NextConfig = {
),
plugins: false,
profiling: false,
sprFlushToDisk: true,
isrFlushToDisk: true,
workerThreads: false,
pageEnv: false,
optimizeImages: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/next/server/next-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export default class Server {
),
locales: this.nextConfig.i18n?.locales,
max: this.nextConfig.experimental.isrMemoryCacheSize,
flushToDisk: !minimalMode && this.nextConfig.experimental.sprFlushToDisk,
flushToDisk: !minimalMode && this.nextConfig.experimental.isrFlushToDisk,
})
this.responseCache = new ResponseCache(this.incrementalCache)

Expand Down

0 comments on commit 52ae69a

Please sign in to comment.