"use client"; import { useEffect } from "react"; import Link from "next/link"; // Route-segment error boundary. Catches runtime errors thrown while rendering any // page/segment (e.g. a request-time fetch or a bad build artifact) and shows a // recoverable UI with a retry, instead of a bare 500. export default function Error({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { useEffect(() => { console.error("Route error boundary caught:", error); }, [error]); return (
Oops

Something went wrong

This page hit an unexpected error. It's usually temporary — try again in a moment.

Back to Home
{error?.digest && (

ref: {error.digest}

)}
); }