Skip to content

Commit

Permalink
fix: sitemap.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycohen committed Oct 13, 2024
1 parent f527bab commit bd9ad9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sites/samplekit.dev/src/routes/(api)/sitemap.xml/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export const GET = async ({ fetch }) => {
})) satisfies SiteMapUrl[];

const articleUrls = allPostData.map((post) => ({
loc: `${PUBLIC_ORIGIN}/articles/${post.articlePath}`,
lastmod: (post.updates?.at ?? post.publishedAt).toString(),
loc: `${PUBLIC_ORIGIN}${post.articlePath}`,
lastmod: (post.updates?.[0]?.at ?? post.publishedAt).toString(),
})) satisfies SiteMapUrl[];

const shopUrls = [
Expand Down

0 comments on commit bd9ad9b

Please sign in to comment.