Astro
Deploy an Astro site to LeafCloud.
Requirements
Section titled “Requirements”Validated with Node v24.22.1, Astro 7.4.2, and npm. No configuration change is required.
-
Create an Astro minimal project:
Terminal window npm create astro@latest app -- --template minimal --yes --no-git < /dev/nullTerminal window cd app -
No config change is needed.
-
Preview the deployment:
Terminal window leaf deploy --dry-runExpected output:
Framework: AstroPackage manager: npmBuild command: npm run buildOutput directory: distFiles: 3Total size: 1716 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”Astro; npm run build; dist.
Common problems
Section titled “Common problems”No Astro-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 Astro 7.4.2.