Added logging and preview options to .env
This commit is contained in:
parent
0a1c22b06f
commit
5ae6f0bc1b
2
.env
2
.env
@ -3,3 +3,5 @@ REACT_APP_ICE_SERVERS_URL=http://localhost:9000/iceservers
|
||||
REACT_APP_STRIPE_API_KEY=pk_test_8M3NHrF1eI2b84ubF4F8rSTe0095R3f0My
|
||||
REACT_APP_STRIPE_URL=http://localhost:9000
|
||||
REACT_APP_VERSION=$npm_package_version
|
||||
REACT_APP_PREVIEW=false
|
||||
REACT_APP_LOGGING=false
|
@ -1,5 +0,0 @@
|
||||
REACT_APP_BROKER_URL=https://test.owlbear.rodeo
|
||||
REACT_APP_ICE_SERVERS_URL=https://test.owlbear.rodeo/iceservers
|
||||
REACT_APP_STRIPE_API_KEY=pk_live_MJjzi5djj524Y7h3fL5PNh4e00a852XD51
|
||||
REACT_APP_STRIPE_URL=https://payment.owlbear.rodeo
|
||||
REACT_APP_VERSION=$npm_package_version
|
@ -3,3 +3,5 @@ REACT_APP_ICE_SERVERS_URL=https://test.owlbear.rodeo/iceservers
|
||||
REACT_APP_STRIPE_API_KEY=pk_live_MJjzi5djj524Y7h3fL5PNh4e00a852XD51
|
||||
REACT_APP_STRIPE_URL=https://payment.owlbear.rodeo
|
||||
REACT_APP_VERSION=$npm_package_version
|
||||
REACT_APP_PREVIEW=true
|
||||
REACT_APP_LOGGING=false
|
@ -2,7 +2,7 @@ import { captureException } from "@sentry/react";
|
||||
|
||||
export function logError(error) {
|
||||
console.error(error);
|
||||
// if (process.env.NODE_ENV === "production") {
|
||||
// captureException(error);
|
||||
// }
|
||||
if (process.env.REACT_APP_LOGGING === "true") {
|
||||
captureException(error);
|
||||
}
|
||||
}
|
||||
|
23
src/index.js
23
src/index.js
@ -11,17 +11,18 @@ import * as serviceWorker from "./serviceWorker";
|
||||
|
||||
import "./index.css";
|
||||
|
||||
console.log(process.env.NODE_ENV);
|
||||
|
||||
// if (process.env.NODE_ENV === "production") {
|
||||
// Sentry.init({
|
||||
// dsn:
|
||||
// "https://bc1e2edfe7ca453f8e7357a48693979e@o467475.ingest.sentry.io/5493956",
|
||||
// release: "owlbear-rodeo@" + process.env.REACT_APP_VERSION,
|
||||
// // Ignore resize error as it is triggered by going fullscreen on slower computers
|
||||
// ignoreErrors: ["ResizeObserver loop limit exceeded", "AbortError: QuotaExceededError"],
|
||||
// });
|
||||
// }
|
||||
if (process.env.REACT_APP_LOGGING === "true") {
|
||||
Sentry.init({
|
||||
dsn:
|
||||
"https://bc1e2edfe7ca453f8e7357a48693979e@o467475.ingest.sentry.io/5493956",
|
||||
release: "owlbear-rodeo@" + process.env.REACT_APP_VERSION,
|
||||
// Ignore resize error as it is triggered by going fullscreen on slower computers
|
||||
ignoreErrors: [
|
||||
"ResizeObserver loop limit exceeded",
|
||||
"AbortError: QuotaExceededError",
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
Modal.setAppElement("#root");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user