We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93e9f46 commit 372af79Copy full SHA for 372af79
next/app/global-error.tsx
@@ -1,6 +1,7 @@
1
"use client";
2
3
import { Button } from "@/components/ui/button";
4
+import { translationToolDetected } from "@/state";
5
import { useEffect } from "react";
6
7
export default function GlobalError({ error }: { error: Error }) {
@@ -9,7 +10,13 @@ export default function GlobalError({ error }: { error: Error }) {
9
10
let reportPromise: Promise<string | void> = Promise.resolve();
11
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
12
reportPromise = import("@sentry/nextjs").then(
- ({ captureException }) => captureException(error),
13
+ ({ captureException }) =>
14
+ captureException(error, {
15
+ extra: {
16
+ translation_tool:
17
+ translationToolDetected.nonReactGet(),
18
+ },
19
+ }),
20
);
21
}
22
0 commit comments