Files
docs/apps/dev-docs/lib/metadata.ts
T
zeekay 7f6941317f feat: add dev-docs app for Hanzo Dev CLI documentation
- New Fumadocs-based docs app at apps/dev-docs/ (port 3003)
- Ported 16+ markdown docs from hanzoai/dev as MDX with navigation
- Landing page with terminal preview, features grid, quick start
- 28 docs pages: getting-started, usage, config, integrations, reference
- Static export to out/ with shiki code highlighting
- CI: add GITHUB_PAGES env, NODE_OPTIONS, SKIP_DTS for faster builds
2026-02-08 23:04:07 -08:00

27 lines
622 B
TypeScript

import type { Metadata } from 'next';
export const baseUrl = new URL(
process.env.NEXT_PUBLIC_SITE_URL ?? 'https://dev.hanzo.ai',
);
export function createMetadata(override: Metadata): Metadata {
return {
...override,
openGraph: {
title: override.title ?? undefined,
description: override.description ?? undefined,
url: baseUrl,
siteName: 'Hanzo Dev',
type: 'website',
...override.openGraph,
},
twitter: {
card: 'summary_large_image',
site: '@hanikidev',
creator: '@hanikidev',
...override.twitter,
},
metadataBase: baseUrl,
};
}