Files
buzz/app/global-error.tsx
T
2026-04-11 15:38:29 +07:00

24 lines
557 B
TypeScript
Executable File

"use client";
import NextError from "next/error";
export default function GlobalError({
error,
}: {
error: Error & { digest?: string };
}) {
console.error(error);
return (
<html lang="en">
<body>
{/* `NextError` is the default Next.js error page component. Its type
definition requires a `statusCode` prop. However, since the App Router
does not expose status codes for errors, we simply pass 0 to render a
generic error message. */}
<NextError statusCode={0} />
</body>
</html>
);
}