sentry dsn exported from package.json

This commit is contained in:
svetlagasheva 2020-01-24 15:12:49 +02:00
parent ba51eaa879
commit ab75849e6c
2 changed files with 6 additions and 2 deletions

View file

@ -6,6 +6,9 @@
"website": "www.stremio.com",
"private": true,
"license": "GPLv3",
"Sentry": {
"dsn": "https://e47a6d214ae4478b81136c29612003a7@sentry.io/1911455"
},
"scripts": {
"start": "webpack-dev-server --mode development",
"build": "webpack --mode production",
@ -14,7 +17,7 @@
"lint": "eslint src"
},
"dependencies": {
"@sentry/browser": "^5.11.1",
"@sentry/browser": "5.11.1",
"a-color-picker": "1.2.1",
"classnames": "2.2.6",
"events": "1.1.1",

View file

@ -1,8 +1,9 @@
const React = require('react');
const ReactDOM = require('react-dom');
const Sentry = require('@sentry/browser');
const Package = require('../package');
const App = require('./App');
Sentry.init({dsn: "https://e47a6d214ae4478b81136c29612003a7@sentry.io/1911455"});
Sentry.init({ dsn: Package.Sentry.dsn });
ReactDOM.render(<App />, document.getElementById('app'));