Sample.app
Framework Guides

Eleventy

Deploy an Eleventy (11ty) site to Sample.app.

Eleventy outputs to _site/ by default.

Deploy

Build your site

npx @11ty/eleventy

Or if Eleventy is in your package.json:

npm run build

Deploy to Sample.app

samplex deploy ./_site

Eleventy outputs to _site/, which is not auto-detected by the CLI. You must specify the directory explicitly.

Custom output directory

You can change the output directory to one that the CLI auto-detects:

.eleventy.js
module.exports = function (eleventyConfig) {
  return {
    dir: {
      output: "dist",
    },
  };
};

Then run:

samplex deploy

On this page