Configure sentry and logrocket per-env

This commit is contained in:
Tyler Hallada 2022-08-29 22:05:59 -04:00
parent e1e9a77c90
commit ddd67dc25c
3 changed files with 3 additions and 1 deletions

View File

@ -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) => {

View File

@ -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

View File

@ -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