mirror of
https://github.com/luxfi/docs.git
synced 2026-09-24 00:25:32 +00:00
Single-app → multi-app monorepo architecture: - apps/docs/ — Main Lux docs (replaces root-level app) - apps/bootnode-docs/ — Bootnode service - apps/bridge-docs/ — Bridge service - apps/cli-docs/ — CLI tool - apps/explorer-docs/ — Block explorer - apps/hsm-docs/ — Hardware security module - apps/indexer-docs/ — Blockchain indexer - apps/kms-docs/ — Key management service - apps/mpc-docs/ — Multi-party computation - apps/netrunner-docs/ — Network testing - apps/sdk-docs/ — SDK documentation - apps/wallet-docs/ — Wallet service New: pnpm-workspace.yaml, turbo.json, per-app configs Updated: Dockerfile (filter build), .gitignore (.turbo/, .docs/) Root package.json stripped to workspace orchestrator
41 lines
1002 B
TypeScript
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);
|