mirror of
https://github.com/documenso/documenso.git
synced 2026-07-13 06:25:01 +10:00
b92c53dbb2
Co-authored-by: Catalin Pit <catalinpit@gmail.com>
21 lines
448 B
TypeScript
21 lines
448 B
TypeScript
import type { MetadataRoute } from 'next';
|
|
|
|
import { source } from '@/lib/source';
|
|
|
|
const BASE_URL = 'https://docs.documenso.com';
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
return [
|
|
{
|
|
url: BASE_URL,
|
|
changeFrequency: 'weekly',
|
|
priority: 1.0,
|
|
},
|
|
...source.getPages().map((page) => ({
|
|
url: `${BASE_URL}${page.url}`,
|
|
changeFrequency: 'weekly' as const,
|
|
priority: 0.7,
|
|
})),
|
|
];
|
|
}
|