diff --git a/src/components/DefaultCatchBoundary.tsx b/src/components/DefaultCatchBoundary.tsx index 5083603cd..a460f0b88 100644 --- a/src/components/DefaultCatchBoundary.tsx +++ b/src/components/DefaultCatchBoundary.tsx @@ -2,6 +2,8 @@ import { ErrorComponent, ErrorComponentProps, Link, + isNotFound, + isRedirect, rootRouteId, useMatch, useRouter, @@ -24,6 +26,7 @@ export function DefaultCatchBoundary({ error }: ErrorComponentProps) { useEffect(() => { if (reloadOnStaleAppError(error)) return + if (isNotFound(error) || isRedirect(error)) return Sentry.captureException(error) }, [error])