fix: improve sentry handling + upgrade version

This commit is contained in:
swve 2024-02-04 19:19:32 +01:00
parent 58385e4183
commit 0c6ce121b0
5 changed files with 32 additions and 46 deletions

View file

@ -4,12 +4,10 @@
import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: "https://5a456d54654c494b9a416c19e3b94573@o4505007882436608.ingest.sentry.io/4505008095625216",
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
if (process.env.NODE_ENV !== "development") {
const DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
Sentry.init({
dsn: DSN,
tracesSampleRate: 1.0,
});
}