Openstatus
www.openstatus.dev
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});