Skip to content

Create React App

Deploy a Create React App site to LeafCloud.

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.

  1. Open the project and move to its root:

    Terminal window
    cd <project>
  2. No config change is needed.

  3. Preview the deployment from the project root:

    Terminal window
    leaf deploy --dry-run

    Expected output:

    Framework: Create React App
    Package manager: npm
    Build command: npm run build
    Output directory: build
    Files: 5
    Total size: 1266710 bytes
    Dry run: nothing was uploaded.

Create React App; npm run build; build.

No Create React App-specific refusal was captured in validation.

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.