Openstatus www.openstatus.dev
at 0580c562a6f62100a34f50c6aa910ff8fdb7d519 18 lines 643 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 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.2, 14 15 // Setting this option to true will print useful information to the console while you're setting up Sentry. 16 debug: false, 17 integrations: [Sentry.captureConsoleIntegration({ levels: ["error"] })], 18});