Skip to content

Commit

Permalink
fix: Set posts and journals change frequency in sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Oct 31, 2024
1 parent 197090e commit 769519f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/feed.xml/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const GET = () => {
url: `${BASE_URL}${url}`,
date: publishedAt as string,
description: excerpt || title,
})
}),
);

return new NextResponse(feed.xml({ indent: true }), {
Expand Down
1 change: 1 addition & 0 deletions app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const sitemap = (): MetadataRoute.Sitemap => {
...allDocuments.map(({ publishedAt, url }) => ({
url: `${BASE_URL}${url}`,
lastModified: formatLastModified(publishedAt),
changeFrequency: "daily",
})),
];
};
Expand Down

0 comments on commit 769519f

Please sign in to comment.