mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-17 13:22:42 +01:00
12 lines
278 B
TypeScript
12 lines
278 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
|
|
tracesSampleRate: 0,
|
|
enableTracing: false,
|
|
autoSessionTracking: false,
|
|
});
|
|
}
|