Files
docs/apps/spec/app/sitemap.ts
zeekay 66b20f7bf8 feat(spec): apps/spec — renders HIPs from canonical hanzoai/hips (single source)
A dedicated standards site in the docs monorepo that SOURCES the HIPs from
hanzoai/hips at build time (scripts/sync-hips.ts, wired as build:pre) rather
than hand-copying them. Verified: sync pulls 240 HIPs → content/docs +
index + meta.json. Standards landing page, branding, .gitignore'd generated
content (single source = the hips repo).

NOTE: not build-verified locally — the docs monorepo does not install on this
box (mid @hanzo/docs-* → fumadocs-* rebrand; no sibling app has node_modules).
Deps + imports aligned to the real fumadocs-* workspace packages; build-green
is a CI concern once the monorepo's package scheme settles.
2026-06-24 14:52:24 -07:00

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,
})),
];
}