Browse Source

FEATURE | setup sentry-enviroment Web app (#26)

Reviewed-on: #26
Co-authored-by: Yevhen Romanenko <yevhen.romanenko.jetup@gmail.com>
Co-committed-by: Yevhen Romanenko <yevhen.romanenko.jetup@gmail.com>
stage
Yevhen Romanenko 6 months ago committed by Vitalik Yatsenko
parent
commit
c90b587de6
  1. 9
      .env
  2. 3
      src/App.tsx

9
.env

@ -1,2 +1,11 @@ @@ -1,2 +1,11 @@
# REACT_APP_MOD=production
REACT_APP_MOD=local
# Sentry logger setup
# SENTRY_ENVIROMENT=production
SENTRY_ENVIROMENT=develop
# The SENTRY_AUTH_TOKEN variable is picked up by the Sentry Build Plugin.
# It's used for authentication when uploading source maps.
SENTRY_AUTH_TOKEN="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"

3
src/App.tsx

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
import React, { useEffect } from "react";
import React from "react";
import { hot } from "react-hot-loader";
import { Provider } from "react-redux";
import "bootstrap/dist/css/bootstrap.css";
@ -19,6 +19,7 @@ import * as Sentry from "@sentry/react"; @@ -19,6 +19,7 @@ import * as Sentry from "@sentry/react";
Sentry.init({
dsn:
"https://9567500c736db7c1e6f5cc0735b76a5a@o402114.ingest.us.sentry.io/4507232702627840",
environment: process.env.SENTRY_ENVIROMENT,
integrations: [
Sentry.browserTracingIntegration(),
Sentry.replayIntegration(),

Loading…
Cancel
Save