Skip to content
Permalink
Browse files
Upgrade to @sentry/browser 5.x
  • Loading branch information
benvinegar committed May 16, 2020
1 parent c7f45dd commit eac90c959e6a5a12c892369b8e523474dbf47df9
Showing with 63 additions and 11 deletions.
  1. +58 −7 client/package-lock.json
  2. +1 −1 client/package.json
  3. +4 −3 client/src/index.js

Some generated files are not rendered by default. Learn more.

@@ -1,8 +1,8 @@
{
"private": true,
"dependencies": {
"@sentry/browser": "^5.15.5",
"prop-types": "^15.5.10",
"raven-js": "^3.17.0",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-router-dom": "^4.1.2",
@@ -1,15 +1,16 @@
import React from 'react';
import ReactDOM from 'react-dom';
import Raven from 'raven-js';
import * as Sentry from '@sentry/browser';

import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';

if (process.env.REACT_APP_SENTRY_DSN) {
Raven.config(process.env.REACT_APP_SENTRY_DSN, {
Sentry.init({
dsn: process.env.REACT_APP_SENTRY_DSN,
release: process.env.REACT_APP_GIT_SHA
}).install();
});
}

ReactDOM.render(<App />, document.getElementById('root'));

0 comments on commit eac90c9

Please sign in to comment.