File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ import Raven from 'raven-js' ;
2
+
3
+ const _APP_INFO = {
4
+ name : 'Github Battle' ,
5
+ branch : 'master' ,
6
+ version : '1.0.0' ,
7
+ } ;
8
+
9
+ const sentryKey = 'bca465026dc84ef6a92815c236f86d98' ;
10
+ const sentryAppID = '94335' ;
11
+ const sentryServerUrl = 'app.getsentry.com' ;
12
+
13
+ const createSentryConfig = ( key , app , server = sentryServerUrl ) =>
14
+ Raven . config ( `https://${ key } @${ server } /${ app } ` , {
15
+ release : _APP_INFO . version ,
16
+ tags : {
17
+ branch : _APP_INFO . branch ,
18
+ }
19
+ } ) ;
20
+
21
+ export default createSentryConfig ( sentryKey , sentryAppID ) ;
Original file line number Diff line number Diff line change 2
2
import ReactDOM from 'react-dom' ;
3
3
4
4
import routes from './config/routes' ;
5
+ import sentryConfig from './config/sentry_config' ;
5
6
7
+ // install sentry
8
+ sentryConfig . install ( ) ;
9
+
10
+ windows . fuck ( ) ;
11
+
12
+ // render react router to #app
6
13
ReactDOM . render (
7
14
routes ,
8
15
document . getElementById ( 'app' )
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ var HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
7
7
} ) ;
8
8
9
9
module . exports = {
10
+ devtool : 'source-map' ,
10
11
entry : [
11
12
'./app/index.js' ,
12
13
] ,
You can’t perform that action at this time.
0 commit comments