quivr/frontend/app/global-error.jsx

22 lines
350 B
React
Raw Normal View History

"use client";
import * as Sentry from "@sentry/nextjs";
import Error from "next/error";
import { useEffect } from "react";
const GlobalError = ({ error }) => {
useEffect(() => {
Sentry.captureException(error);
}, [error]);
return (
<html>
<body>
<Error />
</body>
</html>
);
};
export default GlobalError;