Skip to content

Commit

Permalink
fix: writing to runtime config bug
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Nov 11, 2023
1 parent 4c7c299 commit 095afc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/sitemap/builder/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export async function buildSitemap(sitemap: SitemapDefinition, resolvers: NitroU
// 1. normalise
const normalisedUrls = normaliseSitemapUrls(resolvedSources.map(e => e.urls).flat(), resolvers)
// 2. enhance
const defaults = sitemap.defaults
const defaults = { ...(sitemap.defaults || {}) }
if (autoLastmod && defaults?.lastmod)
defaults.lastmod = new Date()

Expand Down

0 comments on commit 095afc5

Please sign in to comment.