本页还没有译文
本页 4 段还没译成简体中文,下面显示的是英文原文。onDemandEntries
还没翻译译自英文(nextjs.org)本页 4 段都还没译
Next.js exposes some options that give you some control over how the server will dispose or keep in memory built pages in development.
To change the defaults, open next.config.js and add the onDemandEntries config:
next.config.js
module.exports = {
onDemandEntries: {
// period (in ms) where the server will keep pages in the buffer
maxInactiveAge: 25 * 1000,
// number of pages that should be kept simultaneously without being disposed
pagesBufferLength: 2,
},
}AI 翻译查看英文原文