@@ -4,45 +4,56 @@ import { getAllPostMeta } from '@/lib/blog/registry'
44export default async function sitemap ( ) : Promise < MetadataRoute . Sitemap > {
55 const baseUrl = 'https://sim.ai'
66
7- const staticPages = [
7+ const now = new Date ( )
8+
9+ const staticPages : MetadataRoute . Sitemap = [
810 {
911 url : baseUrl ,
10- lastModified : new Date ( ) ,
11- changeFrequency : 'daily' as const ,
12- priority : 1 ,
12+ lastModified : now ,
13+ priority : 1.0 , // Homepage - highest priority
14+ } ,
15+ {
16+ url : `${ baseUrl } /studio` ,
17+ lastModified : now ,
18+ priority : 0.9 , // Blog index - high value content
19+ } ,
20+ {
21+ url : `${ baseUrl } /studio/tags` ,
22+ lastModified : now ,
23+ priority : 0.7 , // Tags page - discovery/navigation
24+ } ,
25+ {
26+ url : `${ baseUrl } /templates` ,
27+ lastModified : now ,
28+ priority : 0.8 , // Templates - important discovery page
1329 } ,
1430 {
15- url : `${ baseUrl } /signup` ,
16- lastModified : new Date ( ) ,
17- changeFrequency : 'weekly' as const ,
18- priority : 0.9 ,
31+ url : `${ baseUrl } /changelog` ,
32+ lastModified : now ,
33+ priority : 0.8 , // Changelog - important for users
1934 } ,
2035 {
21- url : `${ baseUrl } /login` ,
22- lastModified : new Date ( ) ,
23- changeFrequency : 'monthly' as const ,
24- priority : 0.8 ,
36+ url : `${ baseUrl } /careers` ,
37+ lastModified : new Date ( '2024-10-06' ) ,
38+ priority : 0.6 , // Careers - important but not core content
2539 } ,
2640 {
2741 url : `${ baseUrl } /terms` ,
28- lastModified : new Date ( ) ,
29- changeFrequency : 'monthly' as const ,
30- priority : 0.5 ,
42+ lastModified : new Date ( '2024-10-14' ) ,
43+ priority : 0.5 , // Terms - utility page
3144 } ,
3245 {
3346 url : `${ baseUrl } /privacy` ,
34- lastModified : new Date ( ) ,
35- changeFrequency : 'monthly' as const ,
36- priority : 0.5 ,
47+ lastModified : new Date ( '2024-10-14' ) ,
48+ priority : 0.5 , // Privacy - utility page
3749 } ,
3850 ]
3951
4052 const posts = await getAllPostMeta ( )
41- const blogPages = posts . map ( ( p ) => ( {
53+ const blogPages : MetadataRoute . Sitemap = posts . map ( ( p ) => ( {
4254 url : p . canonical ,
4355 lastModified : new Date ( p . updated ?? p . date ) ,
44- changeFrequency : 'monthly' as const ,
45- priority : 0.9 as const ,
56+ priority : 0.9 , // Blog posts - high value content
4657 } ) )
4758
4859 return [ ...staticPages , ...blogPages ]
0 commit comments