Unverified Commit 80e05a88 authored by Shu Ding's avatar Shu Ding Committed by GitHub

Increase time and size windows for cached on-demand entries (#52019)

Increase `maxInactiveAge` to be `60` seconds and `pagesBufferLength` to be `5`. This change makes it infrequent to have expired entry compilations from recent accessed routes when running the dev server.
parent 27953213
...@@ -661,8 +661,8 @@ export const defaultConfig: NextConfig = { ...@@ -661,8 +661,8 @@ export const defaultConfig: NextConfig = {
buildActivityPosition: 'bottom-right', buildActivityPosition: 'bottom-right',
}, },
onDemandEntries: { onDemandEntries: {
maxInactiveAge: 15 * 1000, maxInactiveAge: 60 * 1000,
pagesBufferLength: 2, pagesBufferLength: 5,
}, },
amp: { amp: {
canonicalBase: '', canonicalBase: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment