Files
Frontend/src/app/global-error.tsx

20 lines
420 B
TypeScript
Raw Normal View History

2024-04-21 18:23:29 +01:00
"use client";
import * as Sentry from "@sentry/nextjs";
import Error from "next/error";
import { useEffect } from "react";
export default function GlobalError({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) {
useEffect(() => {
Sentry.captureException(error);
}, [error]);
return (
<html>
<body>
<h1>Something shit the fan</h1>
</body>
</html>
);
}