Commit b8a96c5b authored by afc163's avatar afc163

Trace errors by using sentry.io

parent dfc118fc
...@@ -2,6 +2,7 @@ import dva from 'dva'; ...@@ -2,6 +2,7 @@ import dva from 'dva';
import 'moment/locale/zh-cn'; import 'moment/locale/zh-cn';
import './polyfill'; import './polyfill';
import './g2'; import './g2';
import './raven';
// import { browserHistory } from 'dva/router'; // import { browserHistory } from 'dva/router';
import './index.less'; import './index.less';
......
import Raven from 'raven-js';
// Track error by https://sentry.io/
if (location.host === 'preview.pro.ant.design') {
Raven.config('https://969e74e863854cf0ae7d7d72f534bd3e@sentry.io/247221').install();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment