-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
41 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
// Secret way to set SSR plugin async concurrency option | ||
// Waiting for feedback before documenting this officially? | ||
// TODO Docusaurus v4, rename SSR => SSG | ||
export const SSGConcurrency = process.env.DOCUSAURUS_SSR_CONCURRENCY | ||
? parseInt(process.env.DOCUSAURUS_SSR_CONCURRENCY, 10) | ||
: // Not easy to define a reasonable option default | ||
// Will still be better than Infinity | ||
// See also https://github.com/sindresorhus/p-map/issues/24 | ||
32; | ||
|
||
// Secret way to set SSR plugin async concurrency option | ||
// Waiting for feedback before documenting this officially? | ||
export const SSGWorkerThreadCount: number | undefined = process.env | ||
.DOCUSAURUS_SSG_WORKER_THREAD_COUNT | ||
? parseInt(process.env.DOCUSAURUS_SSG_WORKER_THREAD_COUNT, 10) | ||
: undefined; | ||
|
||
// Number of pathnames to SSG per worker task | ||
export const SSGWorkerThreadTaskSize: number = process.env | ||
.DOCUSAURUS_SSG_WORKER_THREAD_TASK_SIZE | ||
? parseInt(process.env.DOCUSAURUS_SSG_WORKER_THREAD_TASK_SIZE, 10) | ||
: 10; // TODO need fine-tuning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters