[PR #41] [MERGED] Docs: read the current path inside Suspense so doc pages render again #43

Closed
opened 2026-11-03 04:02:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-site/pull/41
Author: @ludovic111
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/docs-suspense-pathname


📝 Commits (1)

  • 28ac633 Docs: read the current path inside Suspense so doc pages render again

📊 Changes

2 files changed (+36 additions, -6 deletions)

View changed files

📝 components/docs-nav.tsx (+18 -3)
📝 components/site-header.tsx (+18 -3)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Why

Every page under https://playhorizon.dev/docs/ (install, hosting, mods…) answers 500 and shows a blank page (reported in Discord). Railway logs: Route "/docs/[...slug]": Next.js encountered URL data usePathname() in a Client Component outside of <Suspense> (CLIENT_HOOK_DYNAMIC) from components/docs-nav.tsx and components/site-header.tsx.

What

Both components read the path in a small child rendered inside <Suspense>. The fallback renders the same markup with an empty path (no link marked as current). Nothing changes visually once the path streams in. No design change.

Checks

  • npm run lint, npm run build: pass.
  • next start locally: /docs/install, /docs/hosting, /docs/mods, /docs, /hub, / all 200. No CLIENT_HOOK error in the server log.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon-site/pull/41 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/docs-suspense-pathname` --- ### 📝 Commits (1) - [`28ac633`](https://github.com/horizon-rust/horizon-site/commit/28ac6338f0701f650bb4d647c274101c26c1f771) Docs: read the current path inside Suspense so doc pages render again ### 📊 Changes **2 files changed** (+36 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `components/docs-nav.tsx` (+18 -3) 📝 `components/site-header.tsx` (+18 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## Why Every page under https://playhorizon.dev/docs/ (install, hosting, mods…) answers **500** and shows a blank page (reported in Discord). Railway logs: `Route "/docs/[...slug]": Next.js encountered URL data usePathname() in a Client Component outside of <Suspense>` (CLIENT_HOOK_DYNAMIC) from `components/docs-nav.tsx` and `components/site-header.tsx`. ## What Both components read the path in a small child rendered inside `<Suspense>`. The fallback renders the same markup with an empty path (no link marked as current). Nothing changes visually once the path streams in. No design change. ## Checks - `npm run lint`, `npm run build`: pass. - `next start` locally: /docs/install, /docs/hosting, /docs/mods, /docs, /hub, / all 200. No CLIENT_HOOK error in the server log. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:02:35 +07:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon-site#43
No description provided.