Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 684524d59ffaf5eadc7150d42c19be2d2264edfa 33 lines 1.2 kB view raw
1// This file configures the initialization of Sentry on the client. 2// The config you add here will be used whenever a users loads a page in their browser. 3// https://docs.sentry.io/platforms/javascript/guides/nextjs/ 4 5import * as Sentry from "@sentry/nextjs"; 6 7import { env } from "@/env"; 8 9Sentry.init({ 10 dsn: env.NEXT_PUBLIC_SENTRY_DSN, 11 12 // Adjust this value in production, or use tracesSampler for greater control 13 tracesSampleRate: 0.5, 14 15 // Setting this option to true will print useful information to the console while you're setting up Sentry. 16 debug: false, 17 18 replaysOnErrorSampleRate: 1.0, 19 20 // This sets the sample rate to be 10%. You may want this to be 100% while 21 // in development and sample at a lower rate in production 22 replaysSessionSampleRate: 0.1, 23 24 // You can remove this option if you're not planning to use the Sentry Session Replay feature: 25 integrations: [ 26 Sentry.replayIntegration({ maskAllText: true, blockAllMedia: true }), 27 Sentry.captureConsoleIntegration({ levels: ["error"] }), 28 ], 29}); 30 31export const onRouterTransitionStart = Sentry.captureRouterTransitionStart; 32 33export const onRequestError = Sentry.captureRequestError;