mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
Removed standalone apps (content absorbed into main docs): - apps/explorer-docs/ - apps/hsm-docs/ - apps/indexer-docs/ Added new standalone apps: - apps/bootnode-docs/ — Blockchain infrastructure - apps/dns-docs/ — DNS/domain management Expanded main docs (apps/docs/): - New Infrastructure section: tasks, functions, pubsub, o11y, zt - New Web3 section: services/web3/ (7 pages) - Services meta.json: 40+ services in 7 categories S3 domain consolidation: - hanzo.space → s3.hanzo.ai - s3.hanzo.space → s3-api.hanzo.ai Updated footer with s3.hanzo.ai link
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,
|
|
})),
|
|
];
|
|
}
|