Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Important
Security Advisory: React2Shell & two new vulnerabilities
Find out more

onDemandEntries

Last updated April 15, 2025

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, opennext.config.js and add theonDemandEntries 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,  },}

Was this helpful?

supported.

[8]ページ先頭

©2009-2025 Movatter.jp