# Eleventy





Eleventy outputs to `_site/` by default.

Deploy [#deploy]

<Steps>
  <Step>
    Build your site [#build-your-site]

    ```bash
    npx @11ty/eleventy
    ```

    Or if Eleventy is in your `package.json`:

    ```bash
    npm run build
    ```
  </Step>

  <Step>
    Deploy to Sample.app [#deploy-to-sampleapp]

    ```bash
    samplex deploy ./_site
    ```
  </Step>
</Steps>

<Callout type="warn">
  Eleventy outputs to `_site/`, which is not auto-detected by the CLI. You must specify the
  directory explicitly.
</Callout>

Custom output directory [#custom-output-directory]

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

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

Then run:

```bash
samplex deploy
```
