Files
team/next.config.mjs
z 29607c1c41
Build & Publish Team Docs / build (push) Failing after 3m5s
trailingSlash export so clean URLs resolve on the static host
Next's default flat route.html is shadowed by the RSC sibling directory
it also emits, which 404s deep links (/docs/full-manual). trailingSlash
emits route/index.html, served in place by hanzoai/static. Rebuild 0.1.1.
2026-07-21 20:01:12 -07:00

20 lines
593 B
JavaScript

import { createMDX } from 'fumadocs-mdx/next';
const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
output: 'export',
// Emit `route/index.html` (not flat `route.html`) so a generic static host
// serves every page from its own directory index — the Next-default flat
// `.html` is shadowed by the RSC sibling directory Next also emits, which
// 404s clean URLs. With trailingSlash the directory index resolves in place.
trailingSlash: true,
reactStrictMode: true,
images: {
unoptimized: true,
},
};
export default withMDX(config);