mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 12:19:06 +00:00
Move sentry DSN as environment variable (#356)
This commit is contained in:
@@ -4,18 +4,22 @@
|
|||||||
|
|
||||||
import * as Sentry from "@sentry/nextjs";
|
import * as Sentry from "@sentry/nextjs";
|
||||||
|
|
||||||
Sentry.init({
|
const SENTRY_DSN = process.env.SENTRY_DSN;
|
||||||
dsn: "https://a6fb679d6e99e303bb2ea0e2d68bfe46@o1376440.ingest.sentry.io/4505634666577920",
|
|
||||||
|
|
||||||
// Adjust this value in production, or use tracesSampler for greater control
|
if (SENTRY_DSN) {
|
||||||
tracesSampleRate: 0,
|
Sentry.init({
|
||||||
|
dsn: SENTRY_DSN,
|
||||||
|
|
||||||
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
// Adjust this value in production, or use tracesSampler for greater control
|
||||||
debug: false,
|
tracesSampleRate: 0,
|
||||||
|
|
||||||
replaysOnErrorSampleRate: 0.0,
|
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
||||||
|
debug: false,
|
||||||
|
|
||||||
// This sets the sample rate to be 10%. You may want this to be 100% while
|
replaysOnErrorSampleRate: 0.0,
|
||||||
// in development and sample at a lower rate in production
|
|
||||||
replaysSessionSampleRate: 0.0,
|
// This sets the sample rate to be 10%. You may want this to be 100% while
|
||||||
});
|
// in development and sample at a lower rate in production
|
||||||
|
replaysSessionSampleRate: 0.0,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -5,12 +5,16 @@
|
|||||||
|
|
||||||
import * as Sentry from "@sentry/nextjs";
|
import * as Sentry from "@sentry/nextjs";
|
||||||
|
|
||||||
Sentry.init({
|
const SENTRY_DSN = process.env.SENTRY_DSN;
|
||||||
dsn: "https://a6fb679d6e99e303bb2ea0e2d68bfe46@o1376440.ingest.sentry.io/4505634666577920",
|
|
||||||
|
|
||||||
// Adjust this value in production, or use tracesSampler for greater control
|
if (SENTRY_DSN) {
|
||||||
tracesSampleRate: 0,
|
Sentry.init({
|
||||||
|
dsn: SENTRY_DSN,
|
||||||
|
|
||||||
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
// Adjust this value in production, or use tracesSampler for greater control
|
||||||
debug: false,
|
tracesSampleRate: 0,
|
||||||
});
|
|
||||||
|
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
||||||
|
debug: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -4,12 +4,16 @@
|
|||||||
|
|
||||||
import * as Sentry from "@sentry/nextjs";
|
import * as Sentry from "@sentry/nextjs";
|
||||||
|
|
||||||
Sentry.init({
|
const SENTRY_DSN = process.env.SENTRY_DSN;
|
||||||
dsn: "https://a6fb679d6e99e303bb2ea0e2d68bfe46@o1376440.ingest.sentry.io/4505634666577920",
|
|
||||||
|
|
||||||
// Adjust this value in production, or use tracesSampler for greater control
|
if (SENTRY_DSN) {
|
||||||
tracesSampleRate: 0,
|
Sentry.init({
|
||||||
|
dsn: SENTRY_DSN,
|
||||||
|
|
||||||
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
// Adjust this value in production, or use tracesSampler for greater control
|
||||||
debug: false,
|
tracesSampleRate: 0,
|
||||||
});
|
|
||||||
|
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
||||||
|
debug: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user