Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
613 B ยท 25 lines
TSX
1234567891011121314151617181920212223242526"use client";
import * as Sentry from "@sentry/nextjs";import NextError from "next/error";import { useEffect } from "react";
export default function GlobalError({ error,}: { error: Error & { digest?: string };}) { useEffect(() => { Sentry.captureException(error); }, [error]);
return ( <html lang="en"> <body> {/* This is the default Next.js error component but it doesn't allow omitting the statusCode property yet. */} {/* oxlint-disable-next-line typescript/no-explicit-any */} <NextError statusCode={undefined as any} /> </body> </html> );}