[WEB-5413] feat: adding sentry error handling in web, space and admin (#8099)

This commit is contained in:
sriram veeraghanta 2025-11-12 19:03:47 +05:30 committed by GitHub
parent 0b78e03055
commit 30da349475
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 872 additions and 414 deletions

View file

@ -1,3 +1,4 @@
import * as Sentry from "@sentry/react-router";
import { Links, Meta, Outlet, Scripts } from "react-router";
import type { HeadersFunction, LinksFunction } from "react-router";
// assets
@ -79,6 +80,10 @@ export function HydrateFallback() {
);
}
export function ErrorBoundary() {
export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {
if (error) {
Sentry.captureException(error);
}
return <ErrorPage />;
}