Fumadocs

Static Export

Enable static export with Fumadocs

Overview

Fumadocs is fully compatible with Next.js static export, allowing you to export the app as a static HTML site without a Node.js server.

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 for limitations and details.

You will need extra configurations to statically store the search indexes, and search will be computed on browser instead:

  1. Search Client: enable static mode.
  2. Search Server: output static indexes.

Cloud Solutions

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

How is this guide?

Last updated on