feat(404): redesign not-found page with agent onboarding card - #59
Merged
Conversation
Replace the bare 404 with an on-brand standalone page: mono "Error 404" header, Quickstart + Steel Skills navigation cards, and a copyable llms-full.txt hint card to onboard coding agents. Adds an ai-context meta tag pointing agents at the LLM-optimized docs index. Self-owns the dark theme since the runtime not-found shell renders outside the root layout.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Replaces the bare, unstyled 404 with an on-brand standalone page.
llms-full.txthint card to onboard coding agents (components/home/llms-hint-card.tsx, mirrorsCLIInstallCard)ai-context<meta>tag pointing agents at the LLM-optimized docs index (present in raw HTML)Why the standalone (no docs chrome) design
At runtime, every wrong URL hits the
[...slug]catch-all and triggersnotFound(), which renders in Next's bare__next_error__shell — outside the root layout andDocsLayout. That means navbar/sidebar/search cannot be delivered on a 404 while keeping a correct HTTP 404 status. So the page self-owns its dark theme (darkwrapper) and uses the cards as curated escape routes.Verification
bun run buildcompiles clean;/_not-foundbuildsnext start: real pages → 200, unknown URLs → 404ai-contextmeta tag present in raw HTML headbiome checkcleancurlcan't execute the client-side render). Recommend eyeballingbun run dev→/overview/does-not-existbefore merge.