danswer/web/sentry.edge.config.ts

12 lines
278 B
TypeScript
Raw Permalink Normal View History

import * as Sentry from "@sentry/nextjs";
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
2024-10-26 12:06:46 -07:00
// Only capture unhandled exceptions
tracesSampleRate: 0,
enableTracing: false,
autoSessionTracking: false,
});
}