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:
parent
af59c9f676
commit
285b27b399
15
readme.md
15
readme.md
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue