sitemap.ts44 lines · main
1import type { MetadataRoute } from 'next';
2
3const SITE = 'https://docs.briven.tech';
4
5/**
6 * Static sitemap of every docs route. Update when adding new pages; the
7 * marketing site has its own sitemap at briven.tech/sitemap.xml.
8 */
9const PATHS: readonly string[] = [
10 '/',
11 '/quickstart',
12 '/cli',
13 '/templates',
14 '/schema',
15 '/examples',
16 '/functions',
17 '/realtime',
18 '/sdks',
19 '/api',
20 '/migration',
21 '/migration/convex',
22 '/migration/supabase',
23 '/migration/firebase',
24 '/migration/hasura',
25 '/migration/postgres',
26 '/migration/nextauth',
27 '/ai',
28 '/self-host',
29 '/operator',
30 '/roadmap',
31 '/changelog',
32 '/status',
33 '/support',
34];
35
36export default function sitemap(): MetadataRoute.Sitemap {
37 const lastModified = new Date();
38 return PATHS.map((p) => ({
39 url: `${SITE}${p}`,
40 lastModified,
41 changeFrequency: p === '/changelog' || p === '/status' ? ('daily' as const) : ('weekly' as const),
42 priority: p === '/' ? 1 : p === '/quickstart' || p === '/migration' ? 0.9 : 0.7,
43 }));
44}