# Fumadocs (Framework Mode, Astro): Static Build
URL: /docs/astro/deploying/static
Source: https://raw.githubusercontent.com/fuma-nama/fumadocs/refs/heads/main/apps/docs/content/docs/(framework)/[framework]/deploying/static.mdx

Output static website with Fumadocs.

## Setup [#setup]

Astro outputs a static site by default (`output: 'static'`). Docs routes set `export const prerender = true`, so they stay static when you add an adapter for server output.

A static build has no server, so these features don't work:

- The search server. Use [static search](#search) instead.
- [Ask AI](/docs/astro/integrations/llms#ask-ai), whose chat route calls the AI model.
- The [MCP server](/docs/astro/integrations/llms#mcp-server).

### Search [step] [#search]

#### Built-in Search [#built-in-search]

1. [Configure Search Server](/docs/headless/search/orama#static-export).
2. [Configure Search UI/Client](/docs/astro/search/orama#static).

After the configurations, your app will statically store the search indexes, and search will be computed on browser instead.

#### Cloud Solutions [#cloud-solutions]

Since the search functionality is powered by remote servers, static export works without configuration.

### Deployment [step] [#deployment]

The search API uses `staticGET()`, so the static output includes it.

See [Astro Deployment](https://docs.astro.build/en/guides/deploy/) for details.