mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
Complete documentation app for the Hanzo ZT SDK suite at zerotrust.hanzo.ai: - Landing page with hero, feature cards, SDK grid, and architecture diagram - Overview: design principles, components, SDK comparison matrix - Getting Started: multi-language install, auth setup, connect examples - Architecture: network topology, transport stack, auth flow, billing, ZAP framing - Integration: ZAP transport, MCP, dev CLI, gateway, tunnel - SDK docs for all 6 languages: Rust (436L), Go (902L), TypeScript (908L), Python (606L), C++ (587L), C (655L) - Static export builds to 16 pages, runs on port 3004
27 lines
635 B
TypeScript
27 lines
635 B
TypeScript
import type { Metadata } from 'next';
|
|
|
|
export const baseUrl = new URL(
|
|
process.env.NEXT_PUBLIC_SITE_URL ?? 'https://zerotrust.hanzo.ai',
|
|
);
|
|
|
|
export function createMetadata(override: Metadata): Metadata {
|
|
return {
|
|
...override,
|
|
openGraph: {
|
|
title: override.title ?? undefined,
|
|
description: override.description ?? undefined,
|
|
url: baseUrl,
|
|
siteName: 'Hanzo Zero Trust',
|
|
type: 'website',
|
|
...override.openGraph,
|
|
},
|
|
twitter: {
|
|
card: 'summary_large_image',
|
|
site: '@hanikidev',
|
|
creator: '@hanikidev',
|
|
...override.twitter,
|
|
},
|
|
metadataBase: baseUrl,
|
|
};
|
|
}
|