Skip to content

Eleventy

Deploy an Eleventy site to LeafCloud.

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.

  1. Create a minimal project with a package.json containing Eleventy and a build script that runs eleventy. Add .eleventy.js:

    module.exports = function (eleventyConfig) {
    return { dir: { input: "src", output: "_site" } };
    };

    Add a page such as src/index.md, then install dependencies with npm install.

  2. No additional configuration is needed.

  3. Preview the deployment from the project root:

    Terminal window
    leaf deploy --dry-run

    Expected output:

    Framework: Eleventy
    Package manager: npm
    Build command: npm run build
    Output directory: _site
    Files: 1
    Total size: 61 bytes
    Dry run: nothing was uploaded.

Eleventy; npm run build; _site.

No Eleventy-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 Eleventy 3.1.7.