1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Add doc to onDemandEntries configuration (#3030)

This commit is contained in:
AugustinLF 2017-10-05 08:28:15 +02:00 committed by Tim Neutkens
parent af59c9f676
commit 285b27b399

View file

@ -931,6 +931,21 @@ module.exports = {
} }
``` ```
#### Configuring the onDemandEntries
Next exposes some options that give you some control over how the server will dispose or keep in memories pages built:
```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,
}
}
```
### Customizing webpack config ### Customizing webpack config
<p><details> <p><details>