diff --git a/apps/web/app/error.tsx b/apps/web/app/error.tsx index 750972ecad..2a8ad617c4 100644 --- a/apps/web/app/error.tsx +++ b/apps/web/app/error.tsx @@ -1,5 +1,6 @@ "use client"; +import { captureException } from "@sentry/nextjs"; import React from "react"; import { getErrorFromUnknown } from "@calcom/lib/errors"; @@ -19,6 +20,9 @@ type ErrorProps = { export default function Error({ error, reset }: ErrorProps) { React.useEffect(() => { log.error(error); + + // Log the error to Sentry + captureException(error); }, [error]); const processedError = React.useMemo(() => {