Fumadocs
Comparison Criteria

Static Site Generation

Next.js static export driven by Fumadocs Loader parameters and a pre-rendered search index.

Result

This page exists as out/en/criteria/ssg/index.html after bun run build. There is no Next.js server in production.

app/[lang]/[[...slug]]/page.tsx
export function generateStaticParams() {
  return source.generateParams();
}

Loader produces every { lang, slug } pair. Next.js renders those pairs with output: 'export' and trailingSlash: true. The search route is also evaluated at build time and exported as static data.

Build invariant: 19 authored pages per locale, 38 mirrored documentation routes, plus the framework root language selector.

On this page