committed by
GitHub
4 changed files with 14 additions and 8 deletions
@ -1,6 +0,0 @@ |
|||
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(); |
|||
} |
|||
@ -0,0 +1,12 @@ |
|||
import Rollbar from 'rollbar-browser'; |
|||
|
|||
// Track error by https://sentry.io/
|
|||
if (location.host === 'preview.pro.ant.design') { |
|||
Rollbar.init({ |
|||
accessToken: '033ca6d7c0eb4cc1831cf470c2649971', |
|||
captureUncaught: true, |
|||
payload: { |
|||
environment: 'production', |
|||
}, |
|||
}); |
|||
} |
|||
Loading…
Reference in new issue