Skip to content

Fix WEBSITE-4 hydration crash on invalid route params - #380

Merged
owens1127 merged 1 commit into
mainfrom
fix/website-4-hydration-notfound
Jun 24, 2026
Merged

Fix WEBSITE-4 hydration crash on invalid route params#380
owens1127 merged 1 commit into
mainfrom
fix/website-4-hydration-notfound

Conversation

@owens1127

Copy link
Copy Markdown
Contributor

Summary

  • WEBSITE-4 (Unknown root exit status / React Add admin-only blacklist action to PGCR menu #329): generateMetadata returned {} or partial robots metadata while the page called notFound() for invalid clan/profile/PGCR params — RSC exit status mismatch caused client hydration to crash (e.g. /clan/www.endgameleagues.com).
  • Align generateMetadata with page-level notFound() on clan, profile, and PGCR routes.
  • Stop calling notFound() inside cached getClan() — page/metadata own the 404 boundary.
  • Convert global not-found.tsx to a server component (no client PageWrapper boundary).

Test plan

  • bun run lint + tsc
  • Visit https://raidhub.io/clan/www.endgameleagues.com — 404, no console hydration error
  • Visit invalid profile URL with garbage suffix — 404, no hydration error
  • Valid clan/profile/PGCR URLs still render normally
  • Post-deploy: confirm WEBSITE-4 resolves in Sentry (Fixes WEBSITE-4)

Made with Cursor

Align generateMetadata with page-level notFound() for clan, profile, and PGCR routes so RSC exit status stays consistent. Fixes WEBSITE-4.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
raid-hub Ready Ready Preview Jun 24, 2026 12:11am

Request Review

@owens1127
owens1127 merged commit a33792b into main Jun 24, 2026
7 checks passed
@owens1127
owens1127 deleted the fix/website-4-hydration-notfound branch June 24, 2026 00:13
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