Files
docs/apps/bot-docs/next.config.ts
zeekay 852e74a6e6 feat: add bot-docs app — Hanzo Bot documentation site
Fumadocs-based docs site migrated from OpenClaw (285 MDX files, 15 categories).
Rebranded to Hanzo Bot with red theme, landing page, CI workflow.

- 261 static pages (install, concepts, CLI, channels, providers, tools, gateway, etc.)
- Mintlify compatibility components (CardGroup, Card, Info, Warning, Note)
- CI: deploy-bot-docs.yml builds + pushes to GHCR + deploys to K8s
- Static export via nginx:alpine Docker image
- Deploys to docs.hanzo.bot
2026-02-13 12:20:57 -08:00

41 lines
1002 B
TypeScript

import { resolve } from 'path';
import createBundleAnalyzer from '@next/bundle-analyzer';
import { createMDX } from '@hanzo/docs/mdx/next';
import type { NextConfig } from 'next';
const withAnalyzer = createBundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
});
const config: NextConfig = {
output: 'export',
reactStrictMode: true,
typescript: {
ignoreBuildErrors: true,
},
webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
'@hanzo/mdx:collections/server': resolve(__dirname, './docs/server.ts'),
'@hanzo/mdx:collections/browser': resolve(__dirname, './docs/browser.ts'),
'@hanzo/mdx:collections/dynamic': resolve(__dirname, './docs/dynamic.ts'),
};
return config;
},
logging: {
fetches: {
fullUrl: true,
},
},
serverExternalPackages: [
'shiki',
],
images: {
unoptimized: true,
},
};
const withMDX = createMDX();
export default withAnalyzer(withMDX(config as any) as NextConfig);