File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 11import { url } from '@/lib/layout.shared' ;
2- import { articleSource , compareSource , pageSource , source } from '@/lib/source' ;
2+ import {
3+ articleSource ,
4+ compareSource ,
5+ guideSource ,
6+ pageSource ,
7+ source ,
8+ } from '@/lib/source' ;
39import type { MetadataRoute } from 'next' ;
410
511export default async function sitemap ( ) : Promise < MetadataRoute . Sitemap > {
612 const articles = await articleSource . getPages ( ) ;
713 const docs = await source . getPages ( ) ;
814 const pages = await pageSource . getPages ( ) ;
15+ const guides = await guideSource . getPages ( ) ;
916 return [
1017 {
1118 url : url ( '/' ) ,
@@ -49,6 +56,12 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
4956 changeFrequency : 'yearly' as const ,
5057 priority : 0.5 ,
5158 } ) ) ,
59+ ...guides . map ( ( item ) => ( {
60+ url : url ( item . url ) ,
61+ lastModified : item . data . date ,
62+ changeFrequency : 'monthly' as const ,
63+ priority : 0.5 ,
64+ } ) ) ,
5265 ...docs . map ( ( item ) => ( {
5366 url : url ( item . url ) ,
5467 changeFrequency : 'monthly' as const ,
You can’t perform that action at this time.
0 commit comments