mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
15 lines
366 B
TypeScript
15 lines
366 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
|
|
enableTracing: false,
|
|
integrations: [],
|
|
tracesSampleRate: 0,
|
|
replaysSessionSampleRate: 0,
|
|
replaysOnErrorSampleRate: 0,
|
|
autoSessionTracking: false,
|
|
});
|
|
}
|