Branchwell

Jotley / website · jotley.ai / src / app / sitemap.ts

1import type { MetadataRoute } from 'next';
2import { SITE_PAGES, SITE_URL } from '@/lib/site-metadata';
3
4export default function sitemap(): MetadataRoute.Sitemap {
5 // Keep the sitemap aligned with public canonicals. Omit lastModified until
6 // we track actual content updates, rather than claiming every build changed it.
7 return Object.values(SITE_PAGES).map(({ path }) => ({
8 url: new URL(path, SITE_URL).href,
9 }));
10}