paper-ai-release-24-07-21/app/[lng]/global-error.jsx

20 lines
332 B
React
Raw Permalink Normal View History

2024-02-11 22:49:17 +08:00
"use client";
import * as Sentry from "@sentry/nextjs";
import Error from "next/error";
import { useEffect } from "react";
export default function GlobalError({ error }) {
useEffect(() => {
Sentry.captureException(error);
}, [error]);
return (
<html>
<body>
<Error />
</body>
</html>
);
}