# Deployment

Deploy Lotus to any static host supported by Astro output.

import { Steps } from '@prosefly/astro-components';

Lotus builds to static output, so deployment works anywhere Astro static sites
are supported.

## Build before deploying

<Steps>

1. **Run a production build locally.**

   ```sh
   npm run build
   ```

2. **Verify the generated output.**

   Confirm that docs pages, MDX imports, search routes, and localized pages all
   render cleanly.

3. **Publish `dist/`.**

   Deploy the generated static output to the host.

</Steps>


## Common static hosts

### Vercel

Use the default Astro static build settings. The generated `dist/` directory is
what Vercel publishes.

### Netlify

Point the build command to `npm run build` and publish the `dist/` directory.

### Cloudflare Pages

Use the same static output flow: install dependencies, run `npm run build`, and
publish `dist/`.

### Static host

If the host can serve files from `dist/`, Lotus can be deployed there. No
server-side runtime is required for the first release.
