Files
docs/apps/base-docs/lib/metadata.ts
zeekay a1bb67c680 Add base-docs app for base.hanzo.ai with landing page, docs, and K8s deployment
New docs site for Hanzo Base following the monorepo docs framework pattern:
- Landing page with feature grid, quick start, and architecture highlights
- 9 documentation sections: getting-started, collections, auth, realtime,
  file-storage, cloud-functions, SDK (JS + Go), and deployment
- K8s manifests for base.hanzo.ai (static docs) and api.base.hanzo.ai
  (multi-tenant Base platform with IAM/KMS integration)
- Dockerfile with nginx for static export serving
- Monochrome Hanzo theme via neutral.css + Geist fonts
2026-02-27 10:00:39 -08:00

27 lines
624 B
TypeScript

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