feat: add route-level error page and per-section error boundary
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
'use client';
|
||||
|
||||
import { Link } from '$shared/ui';
|
||||
|
||||
/**
|
||||
* Route-level error boundary — shown when an unhandled error escapes
|
||||
* the [[...slug]] segment. Mirrors the not-found layout.
|
||||
*/
|
||||
export default function ErrorPage() {
|
||||
return (
|
||||
<main className="flex-1 flex flex-col items-center justify-center gap-6">
|
||||
<h1 className="font-heading text-[clamp(8rem,20vw,18rem)] leading-none">500</h1>
|
||||
<Link href="/">Back to main</Link>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user