Docusaurus
Deploy a Docusaurus site to LeafCloud.
Requirements
Section titled “Requirements”Validated with Node v24.22.1, Docusaurus 3.10.2, React 19.3.1, and npm. The generated classic starter needs no configuration change.
-
Create a Docusaurus classic project:
Terminal window npx --yes create-docusaurus@latest <project> classic --typescript < /dev/nullTerminal window cd <project> -
No config change is needed.
-
Preview the deployment from the project root:
Terminal window leaf deploy --dry-runExpected output:
Framework: DocusaurusPackage manager: npmBuild command: npm run buildOutput directory: buildFiles: 102Total size: 1930232 bytesDry run: nothing was uploaded.A real deploy prints
✓ Live at <url> (<files> files, <uploaded> uploaded)instead of the final dry-run line.
What LeafCloud detects
Section titled “What LeafCloud detects”Docusaurus; npm run build; build.
Common problems
Section titled “Common problems”No Docusaurus-specific refusal was captured in validation.
For agents
Section titled “For agents”Run leaf deploy --dry-run --json first.
Check the exit code and stop if the JSON contains "error".
After a successful dry run, run leaf deploy --json --yes.
Never print credentials.
Validated on 2026-10-23 with Docusaurus 3.10.2.