Skip to content

Commit dee76f8

Browse files
authored
perf(core): add default for DOCUSAURUS_SSG_WORKER_THREAD_RECYCLER_MAX_MEMORY (#11170)
1 parent 4af8982 commit dee76f8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

packages/docusaurus/src/ssg/ssgEnv.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export const SSGWorkerThreadTaskSize: number = process.env
3434
export const SSGWorkerThreadRecyclerMaxMemory: number | undefined = process.env
3535
.DOCUSAURUS_SSG_WORKER_THREAD_RECYCLER_MAX_MEMORY
3636
? parseInt(process.env.DOCUSAURUS_SSG_WORKER_THREAD_RECYCLER_MAX_MEMORY, 10)
37-
: // TODO we should probably provide a default value here
38-
// 2gb is a quite reasonable max that should work well even for large sites
39-
// we'd rather ask community feedback first
40-
undefined;
37+
: // 1 GB is a quite reasonable max value
38+
// It should work well even for large sites
39+
1_000_000_000;

0 commit comments

Comments
 (0)