Files
myeasycms-v2/packages/monitoring/sentry
giancarlo 88ff32479a Update dependencies and refactor SentryProvider component
This update includes version bumps for several dependencies across multiple packages and applications including "@sentry/nextjs", "lucide-react", "@types/node", "pnpm", and others. It also includes a change to the SentryProvider component where the SentryMonitoringService is now instantiated outside the MonitoringProvider function instead of using useRef inside the function.
2024-05-31 19:38:56 +07:00
..
2024-04-23 22:51:45 +07:00

Sentry Monitoring / @kit/sentry

Please set the following environment variable:

NEXT_PUBLIC_MONITORING_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);