This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
Frontend/src/app/global-error.jsx
Liam 8d07092dc4
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 3m36s
Publish Docker Image / docker (ubuntu-latest) (push) Successful in 4m27s
add Sentry
2024-04-26 22:07:02 +01:00

20 lines
332 B
JavaScript

"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>
);
}