Skip to content

nuxt: Sitemap enrichment - #5546

Open
ZJvandeWeg wants to merge 1 commit into
mainfrom
zj-sitemap
Open

nuxt: Sitemap enrichment#5546
ZJvandeWeg wants to merge 1 commit into
mainfrom
zj-sitemap

Conversation

@ZJvandeWeg

Copy link
Copy Markdown
Member

No description provided.

@ZJvandeWeg
ZJvandeWeg requested a review from Yndira-E August 8, 2026 22:46
Enriches the docs/handbook/changelog/blog/ebooks/whitepapers sitemap
entries with git-derived lastmod and frontmatter images via a new Nitro
sitemap source (content-urls.get.ts), since @nuxtjs/sitemap's content
onUrl/filter hooks are re-spliced as raw source text with no closure
over this module's imports. Also discovered docs/** had no `sitemap`
schema field at all, so every /docs/** page was silently absent from
sitemap.xml - fixed as part of the same route.
Comment thread nuxt/lib/git-lastmod.mjs
return map
}

function buildLastmodMap (repoRoot) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the trick here is to just ask git when each file was last updated, and map that file to the path on the website. We do this once, with one git invocation. This is the quickest way, costs about 2 seconds total for all pages.

@netlify

netlify Bot commented Aug 8, 2026

Copy link
Copy Markdown

Deploy Preview for flowforge-website ready!

Name Link
🔨 Latest commit 2fe9f54
🔍 Latest deploy log https://app.netlify.com/projects/flowforge-website/deploys/6a77b1b683053400082d26da
😎 Deploy Preview https://deploy-preview-5546--flowforge-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 65 (🟢 up 2 from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 8, 2026

Copy link
Copy Markdown

Deploy Preview for flowforge-website ready!

Name Link
🔨 Latest commit c22bb65
🔍 Latest deploy log https://app.netlify.com/projects/flowforge-website/deploys/6a77b25e2440cd00088292df
😎 Deploy Preview https://deploy-preview-5546--flowforge-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 66 (🟢 up 3 from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant