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.
Sentry Monitoring / @kit/sentry
Please set the following environment variable:
MONITORING_INSTRUMENTATION_PROVIDER=sentry
NEXT_PUBLIC_SENTRY_DSN=your_dsn
Create the following file at the root of your project:
export * from '@kit/sentry/config/client';
Create the following file at the root of your project:
export * from '@kit/sentry/config/server';
Create the following file at the root of your project:
export * from '@kit/sentry/config/edge';
Finally, update the Next.js configuration in your next.config.js file:
import { withSentryConfig } from "@sentry/nextjs";
// wrap your Next.js configuration with the Sentry configuration
withSentryConfig(nextConfig);