Create React App
Deploy a Create React App site to LeafCloud.
Requirements
Section titled “Requirements”Validated with Node v24.22.1, npm 11.19.0, Create React App (react-scripts) 5.0.1, React 19.3.1, and React DOM 19.3.1. Open an existing CRA project that builds with react-scripts build. No static output configuration change is required.
-
Open the project and move to its root:
Terminal window cd <project> -
No config change is needed.
-
Preview the deployment from the project root:
Terminal window leaf deploy --dry-runExpected output:
Framework: Create React AppPackage manager: npmBuild command: npm run buildOutput directory: buildFiles: 5Total size: 1266710 bytesDry run: nothing was uploaded.
What LeafCloud detects
Section titled “What LeafCloud detects”Create React App; npm run build; build.
Common problems
Section titled “Common problems”No Create React App-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 Create React App 5.0.1.