Sentry
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"use client"; // Error boundaries must be Client Components
|
||||
|
||||
import * as Sentry from "@sentry/nextjs";
|
||||
import {
|
||||
Activity,
|
||||
ArrowLeftRight,
|
||||
@@ -38,6 +39,7 @@ export default function ErrorPage({
|
||||
|
||||
useEffect(() => {
|
||||
// Log the error to an error reporting service
|
||||
Sentry.captureException(error);
|
||||
console.error(error);
|
||||
|
||||
const messages = [
|
||||
|
||||
Reference in New Issue
Block a user