Eleventy
Deploy an Eleventy site to LeafCloud.
Requirements
Section titled “Requirements”Validated with Node v24.22.1, Eleventy 3.1.7, and npm. The minimal project uses .eleventy.js to set the input folder to src and output folder to _site.
-
Create a minimal project with a
package.jsoncontaining Eleventy and abuildscript that runseleventy. Add.eleventy.js:module.exports = function (eleventyConfig) {return { dir: { input: "src", output: "_site" } };};Add a page such as
src/index.md, then install dependencies withnpm install. -
No additional configuration is needed.
-
Preview the deployment from the project root:
Terminal window leaf deploy --dry-runExpected output:
Framework: EleventyPackage manager: npmBuild command: npm run buildOutput directory: _siteFiles: 1Total size: 61 bytesDry run: nothing was uploaded.
What LeafCloud detects
Section titled “What LeafCloud detects”Eleventy; npm run build; _site.
Common problems
Section titled “Common problems”No Eleventy-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 Eleventy 3.1.7.