mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-17 23:51:51 +03:00
92f301e4ce
This pull request updates the Sentry configuration file and adds a new ignore file. The changes include: - Updating the `SENTRY_DSN` environment variable to `NEXT_PUBLIC_SENTRY_DSN` - Updating the `@sentry/nextjs` package to version `7.102.1` - Adding a new ignore file `.sentryclirc`
20 lines
332 B
JavaScript
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>
|
|
);
|
|
}
|