frontend/sentry.server.config.js (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
7const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
8
9Sentry.init({
10 dsn:
11 SENTRY_DSN ||
12 'https://glet_e9aeb5775266f7ed1b1d16ebb550e016@git.octree.ch/api/v4/error_tracking/collector/299',
13 // Note: if you want to override the automatic release value, do not set a
14 // `release` value here - use the environment variable `SENTRY_RELEASE`, so
15 // that it will also get attached to your source maps
16});