Openstatus www.openstatus.dev
at 684524d59ffaf5eadc7150d42c19be2d2264edfa 16 lines 621 B view raw
1// This file configures the initialization of Sentry on the server. 2// The config you add here will be used whenever the server handles a request. 3// https://docs.sentry.io/platforms/javascript/guides/nextjs/ 4 5import * as Sentry from "@sentry/nextjs"; 6 7Sentry.init({ 8 dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, 9 10 // Adjust this value in production, or use tracesSampler for greater control 11 tracesSampleRate: 0.2, 12 13 // Setting this option to true will print useful information to the console while you're setting up Sentry. 14 debug: false, 15 integrations: [Sentry.captureConsoleIntegration({ levels: ["error"] })], 16});