mirror of
https://github.com/zap-proto/zap-proto.github.io.git
synced 2026-10-30 15:02:56 +00:00
- why-zap: same rewrite as zap-proto/dev — gRPC+protobuf replacement story, ZAP-only-in-production case (zero gRPC, four-function zap2pb boundary), unmeasured tables scrubbed. Links to pages not in this site%27s subset (tools, zip, benchmarks, capabilities) point at zap-proto.dev. - index: Next Steps cards pointed at /docs/schema, /docs/codegen, /docs/rpc — pages this site does not carry. Now: Quick Start, Protocol, Why ZAP, and full docs on zap-proto.dev. - build: alias MDX collections at the regenerated docs/ instead of the frozen .docs/ snapshot (same latent bug as zap-proto/dev — new content files would silently never render). Co-authored-by: Hanzo Dev <[email protected]>
36 lines
1.0 KiB
JavaScript
36 lines
1.0 KiB
JavaScript
import { createMDX } from '@hanzo/docs/mdx/next';
|
|
import { fileURLToPath } from 'node:url';
|
|
import path from 'node:path';
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
const withMDX = createMDX();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
output: 'export',
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
reactStrictMode: true,
|
|
turbopack: {
|
|
resolveAlias: {
|
|
'@hanzo/docs-mdx:collections/server': './docs/server.ts',
|
|
'@hanzo/docs-mdx:collections/browser': './docs/browser.ts',
|
|
'@hanzo/docs-mdx:collections/dynamic': './docs/dynamic.ts',
|
|
},
|
|
},
|
|
webpack: (config) => {
|
|
config.resolve = config.resolve || {};
|
|
config.resolve.alias = {
|
|
...config.resolve.alias,
|
|
'@hanzo/docs-mdx:collections/server': path.join(__dirname, 'docs/server.ts'),
|
|
'@hanzo/docs-mdx:collections/browser': path.join(__dirname, 'docs/browser.ts'),
|
|
'@hanzo/docs-mdx:collections/dynamic': path.join(__dirname, 'docs/dynamic.ts'),
|
|
};
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|