2023-12-07 09:13:33 +00:00
|
|
|
// This file configures the initialization of Sentry on the server.
|
|
|
|
// The config you add here will be used whenever the server handles a request.
|
|
|
|
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
|
|
|
|
|
|
|
|
import * as Sentry from "@sentry/nextjs";
|
|
|
|
|
|
|
|
Sentry.init({
|
2024-05-27 09:51:41 +00:00
|
|
|
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
2023-12-07 09:13:33 +00:00
|
|
|
environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT || "development",
|
2024-05-27 09:51:41 +00:00
|
|
|
|
2023-12-07 09:13:33 +00:00
|
|
|
// Adjust this value in production, or use tracesSampler for greater control
|
2024-05-27 09:51:41 +00:00
|
|
|
tracesSampleRate: 1,
|
|
|
|
|
|
|
|
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
|
|
|
debug: false,
|
|
|
|
|
|
|
|
// Uncomment the line below to enable Spotlight (https://spotlightjs.com)
|
|
|
|
// spotlight: process.env.NODE_ENV === 'development',
|
2023-12-07 09:13:33 +00:00
|
|
|
});
|