"use client" import * as Sentry from "@sentry/nextjs" import { useEffect } from "react" import styles from "./global-error.module.css" export default function GlobalError({ error, }: { error: Error & { digest?: string } }) { console.log({ global_error: error }) useEffect(() => { Sentry.captureException(error) }, [error]) return (

Something went really wrong!

) }