mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-14 21:20:30 +08:00
22 lines
397 B
TypeScript
22 lines
397 B
TypeScript
"use client";
|
|
|
|
import * as Sentry from "@sentry/nextjs";
|
|
import Error from "next/error";
|
|
import { useEffect } from "react";
|
|
|
|
export default function GlobalError({ error }: any) {
|
|
useEffect(() => {
|
|
Sentry.captureException(error);
|
|
}, [error]);
|
|
|
|
return (
|
|
<html>
|
|
<body suppressHydrationWarning>
|
|
<Error
|
|
statusCode={500}
|
|
/>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|