dashboard: add sentry

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-23 21:24:22 +01:00
parent dbf022a430
commit 29527b558c
9 changed files with 403 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
"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>
);
}