# Hugo





Hugo generates static files to `public/` by default.

Deploy [#deploy]

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

    ```bash
    hugo
    ```

    Or with draft content:

    ```bash
    hugo -D
    ```
  </Step>

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

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

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

Custom output directory [#custom-output-directory]

If you've configured a different output directory in your Hugo config:

```toml title="hugo.toml"
publishDir = "dist"
```

Then auto-detection will find it:

```bash
samplex deploy
```
