mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-27 09:19:53 +00:00
Adds the Hanzo Platform documentation app with 47 MDX pages covering: - Getting Started (overview, quickstart, concepts, CLI) - Deployments (Kubernetes, Docker Swarm, Compose, Git, Registry, Domains) - Clusters (fleet, registration, provisioning, node pools) - Virtual Machines (AWS, DigitalOcean, Hetzner, volumes, terminal) - Access Control (organizations, roles, permissions, invitations) - Pricing (plans, compute, storage) - API Reference (authentication, organizations, clusters, containers, VMs) Also adds team app and K8s deployment manifest for platform-site.
31 lines
736 B
TypeScript
31 lines
736 B
TypeScript
import type { MetadataRoute } from 'next';
|
|
import { source } from '@/lib/source';
|
|
import { baseUrl } from '@/lib/metadata';
|
|
|
|
export const dynamic = 'force-static';
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const url = (path: string) => new URL(path, baseUrl).toString();
|
|
|
|
return [
|
|
{
|
|
url: url('/'),
|
|
changeFrequency: 'monthly',
|
|
priority: 1,
|
|
},
|
|
{
|
|
url: url('/docs'),
|
|
changeFrequency: 'weekly',
|
|
priority: 0.9,
|
|
},
|
|
...source.getPages().map((page) => ({
|
|
url: url(page.url),
|
|
lastModified: page.data.lastModified
|
|
? new Date(page.data.lastModified)
|
|
: undefined,
|
|
changeFrequency: 'weekly' as const,
|
|
priority: 0.8,
|
|
})),
|
|
];
|
|
}
|