@@ -10,13 +10,11 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
1010 const staticPages = [
1111 {
1212 url : baseUrl ,
13- lastModified : new Date ( ) ,
14- priority : 1.0
13+ lastModified : new Date ( new Date ( ) . getTime ( ) - ( 9 * 60 * 60 * 1000 ) ) . toISOString ( )
1514 } ,
1615 {
17- url : `${ baseUrl } /about` , // about 페이지가 있다면
18- lastModified : new Date ( ) ,
19- priority : 0.9
16+ url : `${ baseUrl } /about` ,
17+ lastModified : new Date ( new Date ( ) . getTime ( ) - ( 9 * 60 * 60 * 1000 ) ) . toISOString ( )
2018 }
2119 ]
2220
@@ -26,9 +24,10 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
2624 const postDate = ( ( post as PageObjectResponse ) . properties . post_date as DatePropertyItemObjectResponse ) . date ?. start
2725 return {
2826 url : `${ baseUrl } /post/${ post . id } ` ,
29- lastModified : postDate ? new Date ( postDate ) : new Date ( ) ,
30- priority : 0.8 ,
31- changefreq : 'monthly' // 블로그 포스트는 자주 수정되지 않으므로
27+ lastModified : postDate
28+ ? new Date ( new Date ( postDate ) . getTime ( ) - ( 9 * 60 * 60 * 1000 ) ) . toISOString ( )
29+ : new Date ( new Date ( ) . getTime ( ) - ( 9 * 60 * 60 * 1000 ) ) . toISOString ( ) ,
30+ changefreq : 'monthly'
3231 }
3332 } )
3433
@@ -41,8 +40,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
4140 // 기본 sitemap 반환
4241 return [ {
4342 url : 'https://ppippi-dev.github.io' ,
44- lastModified : new Date ( ) ,
45- priority : 1.0
43+ lastModified : new Date ( new Date ( ) . getTime ( ) - ( 9 * 60 * 60 * 1000 ) ) . toISOString ( )
4644 } ]
4745 }
4846}
0 commit comments