import { PageHead } from "~/components/PageHead"; import { HttpHeader, HttpStatusCode } from "@solidjs/start"; import { useLocation, useNavigate } from "@solidjs/router"; import { createSignal, onCleanup, onMount, Show } from "solid-js"; import { TerminalErrorPage } from "~/components/TerminalErrorPage"; import { glitchText } from "~/lib/client-utils"; function CrashComponent() { throw new Error("Terminal crash test - triggering error boundary"); } export default function NotFound() { const [glitch404, setGlitch404] = createSignal("404"); const [shouldCrash, setShouldCrash] = createSignal(false); const navigate = useNavigate(); const location = useLocation(); onMount(() => { const interval = glitchText(glitch404(), setGlitch404); onCleanup(() => { clearInterval(interval); }); }); const errorContent = (
{glitch404()}
error: Not Found
✗
Failed to resolve route
The requested path does not exist in the routing table
→ Location:{" "} {location.pathname}
ℹ Type help to see available commands, or try one of the suggestions below
); const quickActions = ( <> ); return ( <> {/*@ts-ignore (intentional crash)*/} {/* Cache 404/fallback responses at the edge (Vercel caches 404s) so bots/monitors that probe dead paths don't re-render the full page on every request. Function headers override vercel.json here. */} setShouldCrash(true) }} footer={ <> 404{" "} | Page Not Found } /> ); }