Configure sentry and logrocket per-env
This commit is contained in:
parent
e1e9a77c90
commit
ddd67dc25c
@ -8,7 +8,7 @@ import setupLogRocketReact from "logrocket-react";
|
||||
|
||||
import store from "../lib/store";
|
||||
|
||||
LogRocket.init("0tlgj3/modmapper");
|
||||
LogRocket.init(process.env.LOGROCKET_ID || "0tlgj3/modmapper");
|
||||
if (typeof window !== "undefined") setupLogRocketReact(LogRocket);
|
||||
|
||||
LogRocket.getSessionURL((sessionURL) => {
|
||||
|
@ -10,6 +10,7 @@ Sentry.init({
|
||||
dsn: SENTRY_DSN || 'https://dda36383332143d3a84c25a4f6aa6470@o1382253.ingest.sentry.io/6697231',
|
||||
// Adjust this value in production, or use tracesSampler for greater control
|
||||
tracesSampleRate: 1.0,
|
||||
environment: process.env.SENTRY_ENV || 'production',
|
||||
// ...
|
||||
// Note: if you want to override the automatic release value, do not set a
|
||||
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
|
||||
|
@ -10,6 +10,7 @@ Sentry.init({
|
||||
dsn: SENTRY_DSN || 'https://dda36383332143d3a84c25a4f6aa6470@o1382253.ingest.sentry.io/6697231',
|
||||
// Adjust this value in production, or use tracesSampler for greater control
|
||||
tracesSampleRate: 1.0,
|
||||
environment: process.env.SENTRY_ENV || 'production',
|
||||
// ...
|
||||
// Note: if you want to override the automatic release value, do not set a
|
||||
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
|
||||
|
Loading…
Reference in New Issue
Block a user