mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
- New Fumadocs-based docs app at apps/dev-docs/ (port 3003) - Ported 16+ markdown docs from hanzoai/dev as MDX with navigation - Landing page with terminal preview, features grid, quick start - 28 docs pages: getting-started, usage, config, integrations, reference - Static export to out/ with shiki code highlighting - CI: add GITHUB_PAGES env, NODE_OPTIONS, SKIP_DTS for faster builds
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,
|
|
})),
|
|
];
|
|
}
|