mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
- New insights-docs app at apps/insights-docs/ (port 3006, static export) - 712-line landing page with 8 sections: hero, products, all 45 features, why self-host, tech stack, quick deploy, ecosystem, CTA - 16 MDX content pages: getting-started, products, API, self-hosting, privacy - Deploy workflow: .github/workflows/deploy-insights-docs.yml (Cloudflare Pages) - Analytics tracking UUID: ebdee691 (analytics.hanzo.ai) - Build verified: 9 routes, static export, 20s build time
27 lines
628 B
TypeScript
27 lines
628 B
TypeScript
import type { Metadata } from 'next';
|
|
|
|
export const baseUrl = new URL(
|
|
process.env.NEXT_PUBLIC_SITE_URL ?? 'https://insights.hanzo.ai',
|
|
);
|
|
|
|
export function createMetadata(override: Metadata): Metadata {
|
|
return {
|
|
...override,
|
|
openGraph: {
|
|
title: override.title ?? undefined,
|
|
description: override.description ?? undefined,
|
|
url: baseUrl,
|
|
siteName: 'Hanzo Insights',
|
|
type: 'website',
|
|
...override.openGraph,
|
|
},
|
|
twitter: {
|
|
card: 'summary_large_image',
|
|
site: '@hanzoai',
|
|
creator: '@hanzoai',
|
|
...override.twitter,
|
|
},
|
|
metadataBase: baseUrl,
|
|
};
|
|
}
|