Skip to content

fix: sitemap, 404 page, and Sentry client warning#117

Merged
johnshift merged 5 commits intodevfrom
fix/borkages
Mar 7, 2026
Merged

fix: sitemap, 404 page, and Sentry client warning#117
johnshift merged 5 commits intodevfrom
fix/borkages

Conversation

@johnshift
Copy link
Copy Markdown
Collaborator

Summary

  • Replace broken dynamic sitemap with sitemap index and named route segments (sitemap.xml, sitemap1.xml, sitemap2.xml, sitemap3.xml)
  • Add header and footer to the custom 404 page for consistent layout
  • Export onRouterTransitionStart from instrumentation-client to silence Sentry CLI warning
  • Bump version to 2.31.1

Root-level not-found.tsx only gets the root layout, missing the
header/footer from the (main) route group layout.
The old generateSitemaps() approach produced /sitemap/[id].xml routes
but the [slug] catch-all intercepted /sitemap.xml, returning 404.

Replace with explicit route handlers serving XML directly:
- /sitemap.xml — sitemap index referencing 3 child sitemaps
- /sitemap1.xml — static pages (force-static)
- /sitemap2.xml — pillar pages (ISR, 1h revalidate)
- /sitemap3.xml — job listings (ISR, 1h revalidate)
@github-actions github-actions bot added the fix Bug fix label Mar 7, 2026
@johnshift johnshift merged commit 1a1b157 into dev Mar 7, 2026
7 checks passed
@johnshift johnshift deleted the fix/borkages branch March 7, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant