Files
zerocopy/next.config.mjs
zeekay 6ac5cf3df8 Initial: zerocopy.app — ZApps marketing landing
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
2026-05-06 13:51:32 -07:00

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);