14 lines
286 B
TypeScript
14 lines
286 B
TypeScript
import * as Sentry from "@sentry/nextjs";
|
|
|
|
Sentry.init({
|
|
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
tracesSampleRate: 1.0,
|
|
environment: process.env.NODE_ENV,
|
|
beforeSend(event) {
|
|
if (process.env.NODE_ENV === "development") {
|
|
return null;
|
|
}
|
|
return event;
|
|
},
|
|
});
|