Files
docs/apps/zt-docs/next.config.ts
zeekay f8cde1decb feat(zt-docs): add Hanzo Zero Trust documentation site
Complete documentation app for the Hanzo ZT SDK suite at zerotrust.hanzo.ai:
- Landing page with hero, feature cards, SDK grid, and architecture diagram
- Overview: design principles, components, SDK comparison matrix
- Getting Started: multi-language install, auth setup, connect examples
- Architecture: network topology, transport stack, auth flow, billing, ZAP framing
- Integration: ZAP transport, MCP, dev CLI, gateway, tunnel
- SDK docs for all 6 languages: Rust (436L), Go (902L), TypeScript (908L),
  Python (606L), C++ (587L), C (655L)
- Static export builds to 16 pages, runs on port 3004
2026-02-22 14:56:02 -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);