mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-17 21:32:36 +01:00
19 lines
566 B
TypeScript
19 lines
566 B
TypeScript
import * as Sentry from "@sentry/nextjs";
|
|
|
|
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
|
|
Sentry.init({
|
|
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
|
|
// Only capture unhandled exceptions and errors
|
|
tracesSampleRate: 0,
|
|
enableTracing: false,
|
|
|
|
// Disable performance monitoring and only capture errors
|
|
profilesSampleRate: 0,
|
|
|
|
// Note: if you want to override the automatic release value, do not set a
|
|
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
|
|
// that it will also get attached to your source maps
|
|
});
|
|
}
|