mirror of
https://github.com/zap-proto/zerocopy.git
synced 2026-10-30 15:02:43 +00:00
Bold marketing landing for the ZApps brand. Three pillars (less memory, lower latency, future-proof), use-case grid, manifesto MDX, CTA to zap-proto.dev. Visual treatment intentionally distinct from zap-proto.io: dark hero, gradient typography, larger CTAs, no docs chrome. CNAME: zerocopy.app
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);
|