From 47d76eddf4d67799192720aa56e7a1548ca2a70d Mon Sep 17 00:00:00 2001 From: Maximilian Kaske <56969857+mxkaske@users.noreply.github.com> Date: Thu, 24 Sep 2026 20:19:28 +0200 Subject: [PATCH] fix(status-page): keep global-error free of layout providers (#2768) global-error renders in place of the root layout, so NuqsAdapter is not mounted above it. The shared Link component calls useEmbed -> useQueryState, which threw "[nuqs] nuqs requires an adapter" while rendering the fallback. That crash unmounted the tree (blank page) and ran before the useEffect that reports the original error to Sentry, so the real failure was never captured. Use plain anchors in the fallback so it cannot depend on anything from the layout it replaces. Fixes OPENSTATUS-FRONTEND-VM Fixes OPENSTATUS-FRONTEND-K3 Fixes OPENSTATUS-FRONTEND-GZ Claude-Session: https://claude.ai/code/session_01E5kXCLpeMzYvrHCmNYSzQh Co-authored-by: Claude --- apps/status-page/src/app/global-error.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/apps/status-page/src/app/global-error.tsx b/apps/status-page/src/app/global-error.tsx index 758c1809..1ba71b90 100644 --- a/apps/status-page/src/app/global-error.tsx +++ b/apps/status-page/src/app/global-error.tsx @@ -4,8 +4,8 @@ import { Button } from "@openstatus/ui/components/ui/button"; import * as Sentry from "@sentry/nextjs"; import { useEffect } from "react"; -import { Link } from "../components/common/link"; - +// Rendered in place of the root layout, so nothing from it (NuqsAdapter, tRPC, +// theme) exists here — plain anchors only, or this page throws too. export default function GlobalError({ error, reset, @@ -31,8 +31,13 @@ export default function GlobalError({

An unexpected error occurred. This has been reported and we're working on it.{" "} - Contact us if - it persists. + + Contact us + {" "} + if it persists.

@@ -45,7 +50,7 @@ export default function GlobalError({ Try Again
-- 2.51.2