# Fumadocs (Framework Mode, Next.js): Static Build
URL: /docs/next/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]

By default, Fumadocs uses a server-first approach, which requires a running server.
You can output a static build by configuring Next.js.

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

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

`proxy.ts` doesn't run either, so there are no [i18n redirects](/docs/next/internationalization#middleware) to a locale, and pages don't serve [Markdown for the `Accept` header](/docs/next/integrations/llms#accept).

### 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/next/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]

Enable static export to output a static HTML site that runs without a Node.js server:

```js title="next.config.mjs"
/**
 * @type {import('next').NextConfig}
 */
const nextConfig = {
  output: 'export',

  // Optional: Change links `/me` -> `/me/` and emit `/me.html` -> `/me/index.html`
  // trailingSlash: true,

  // Optional: Prevent automatic `/me` -> `/me/`, instead preserve `href`
  // skipTrailingSlashRedirect: true,
};
```

See [Next.js docs](https://nextjs.org/docs/app/guides/static-exports) for limitations and details.