perf(core): add default for DOCUSAURUS_SSG_WORKER_THREAD_RECYCLER_MAX_MEMORY (#11170)

This commit is contained in:
Sébastien Lorber 2025-05-09 19:26:15 +02:00 committed by GitHub
parent 4af8982278
commit dee76f8042
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,6 @@ export const SSGWorkerThreadTaskSize: number = process.env
export const SSGWorkerThreadRecyclerMaxMemory: number | undefined = process.env
.DOCUSAURUS_SSG_WORKER_THREAD_RECYCLER_MAX_MEMORY
? parseInt(process.env.DOCUSAURUS_SSG_WORKER_THREAD_RECYCLER_MAX_MEMORY, 10)
: // TODO we should probably provide a default value here
// 2gb is a quite reasonable max that should work well even for large sites
// we'd rather ask community feedback first
undefined;
: // 1 GB is a quite reasonable max value
// It should work well even for large sites
1_000_000_000;