Skip to content

Commit 7595f7e

Browse files
committed
fix: disable isr disk cache
1 parent 273b021 commit 7595f7e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

demo/next.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
module.exports = {
22
// Configurable site features we support:
33
// distDir: 'build',
4-
experimental: {
5-
isrFlushToDisk: false,
6-
},
4+
75
generateBuildId: () => 'build-id',
86
i18n: {
97
defaultLocale: 'en',

src/templates/getHandler.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-lines-per-function */
12
const { promises, createWriteStream, existsSync } = require('fs')
23
const { Server } = require('http')
34
const { tmpdir } = require('os')
@@ -21,6 +22,7 @@ const makeHandler =
2122

2223
// Set during the request as it needs the host header. Hoisted so we can define the function once
2324
let base
25+
conf.experimental.isrFlushToDisk = false
2426

2527
// Only do this if we have some static files moved to the CDN
2628
if (staticManifest.length !== 0) {
@@ -182,3 +184,4 @@ exports.handler = ${
182184
`
183185

184186
module.exports = getHandler
187+
/* eslint-enable max-lines-per-function */

0 commit comments

Comments
 (0)