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 = {
buildActivityPosition: 'bottom-right',
},
onDemandEntries: {
maxInactiveAge: 15 * 1000,
pagesBufferLength: 2,
maxInactiveAge: 60 * 1000,
pagesBufferLength: 5,
},
amp: {
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