mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-22 11:07:51 +02:00
perf(core): add default for DOCUSAURUS_SSG_WORKER_THREAD_RECYCLER_MAX_MEMORY (#11170)
This commit is contained in:
parent
4af8982278
commit
dee76f8042
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue