Files
f02488c3c6 fix(docs): add custom 404 page with proper theme support (#5779)
* fix(docs): add custom 404 page with proper theme support

The default Next.js error page renders with a hardcoded black
background and dark color scheme, causing broken styling in light
mode (black background, invisible banner text) and the 404 message
not being centered.

Add a custom not-found.tsx that uses Fumadocs DocsPage component
to properly inherit the active theme, centers the 404 message,
and sets a concise tab title.

Fixes #5778

* fix(docs): move not-found to root and override h1 padding

Place not-found.tsx at the app root so it catches unmatched URLs
across all route groups (e.g. /blog/*, /api/*) — a not-found inside
the (doc) group only catches 404s within that segment.

Add `py-0!` to the heading to defeat the global `h1 { @apply py-3 }`
rule from global.css; `border-none` already neutralizes the bottom
border. Wrap in DocsLayout so the 404 keeps the sidebar/nav chrome.

---------

Co-authored-by: Colin McDonnell <[email protected]>
2026-04-27 19:55:55 -07:00
..
2025-05-19 06:07:02 -07:00
2025-11-10 12:02:13 -08:00
2025-07-28 22:29:15 -07:00
2025-05-26 16:48:35 -07:00
2025-05-19 06:07:02 -07:00
2025-05-19 06:07:02 -07:00
2025-05-19 06:07:02 -07:00
2025-08-08 16:37:35 -07:00
2025-05-19 06:07:02 -07:00
2025-05-19 06:07:02 -07:00