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