Deleted the ErrorBoundary component from the makerkit package and introduced new exception capture mechanisms for Baselime and Sentry monitoring providers. The code now captures all exceptions thrown within components and sends them to the configured monitoring provider, which in turn logs the errors for debugging purposes. Updated packages and environment variables accordingly to support this feature.
6 lines
157 B
TypeScript
6 lines
157 B
TypeScript
import * as Sentry from '@sentry/nextjs';
|
|
|
|
export function captureException(error: Error & { digest?: string }) {
|
|
return Sentry.captureException(error);
|
|
}
|