# Astro





Astro outputs static files to `dist/` by default, which the CLI auto-detects.

Deploy [#deploy]

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

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

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

    ```bash
    samplex deploy
    ```

    Or specify the directory explicitly:

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

Hybrid rendering [#hybrid-rendering]

If you're using Astro's hybrid or server mode, only pre-rendered pages will work with Sample.app.

<Callout type="warn">
  Pages that use server-side rendering won't be included in the static output. Make sure pages you
  want to deploy have `prerender: true` set.
</Callout>

To switch to fully static output:

```ts title="astro.config.mjs"
import { defineConfig } from "astro/config";

export default defineConfig({
  output: "static",
});
```
