Skip to content

Nuxt: fix sitemap missing handbook, ebooks, whitepapers, and integrations pages#5351

Merged
ZJvandeWeg merged 7 commits into
mainfrom
nuxt/fix-sitemap
Jul 22, 2026
Merged

Nuxt: fix sitemap missing handbook, ebooks, whitepapers, and integrations pages#5351
ZJvandeWeg merged 7 commits into
mainfrom
nuxt/fix-sitemap

Conversation

@Yndira-E

@Yndira-E Yndira-E commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Description

sitemap.xml was only listing 1 URL (/resources/publications) in production, everything native to Nuxt (handbook, ebooks, whitepapers, integrations) was missing.

  • Wire handbook, ebooks, and whitepapers content collections into @nuxtjs/sitemap's native @nuxt/content v3 integration (defineSitemapSchema() in content.config.ts), instead of relying on static-route auto-discovery, which can't see dynamic routes.
  • Add a dedicated source for integrations (not a content collection — built from the npm/GitHub catalogue at request time).
  • Drop the runtime bridge that read sitemap-legacy.xml and merged it into sitemap.xml on every request. Instead, declare both sitemaps separately in robots.txt: sitemap.xml for Nuxt-native pages, sitemap-legacy.xml (served as-is from nuxt/public/) for whatever's still on 11ty.
  • Remove a manual useHead robots meta tag in pages/[...slug].vue that raced against @nuxtjs/robots's own computed meta/header for the same pages — now routeRules is the single source of truth.
  • Move /terms from a hardcoded .vue page to nuxt/content/terms.md, matching the existing privacy-policy.md pattern (both now render through the same pages/[...slug].vue catch-all).

Verified locally

  • sitemap.xml: 241 URLs (174 handbook + 60 integrations + 4 whitepapers + 2 ebooks + 1 publications), no noindex leaks.
  • sitemap-legacy.xml: confirmed reachable and correctly proxied to 11ty in dev; will be served as a static file from nuxt/public/ in production (11ty build step runs before the Nuxt build).
  • /terms and /privacy-policy: both return noindex, nofollow even when simulating production (?mockProductionEnv=1).

Related Issue(s)

Checklist

  • I have read the contribution guidelines
  • I have considered the performance impact of these changes
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
  • For blog PRs, an Art Request has been created (instructions)

@netlify

netlify Bot commented Jul 21, 2026

Copy link
Copy Markdown

Deploy Preview for flowforge-website ready!

Name Link
🔨 Latest commit af28827
🔍 Latest deploy log https://app.netlify.com/projects/flowforge-website/deploys/6a608b23ddbbbf0008ecbc31
😎 Deploy Preview https://deploy-preview-5351--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: 63 (🔴 down 11 from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (no change from production)
SEO: 91 (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.

@Yndira-E
Yndira-E requested a review from ZJvandeWeg July 21, 2026 14:31
@Yndira-E
Yndira-E marked this pull request as ready for review July 21, 2026 14:31
@ZJvandeWeg
ZJvandeWeg merged commit 9af046f into main Jul 22, 2026
7 checks passed
@ZJvandeWeg
ZJvandeWeg deleted the nuxt/fix-sitemap branch July 22, 2026 13:39
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.

2 participants