Commit 3dec7c8b authored by afc163's avatar afc163

use rollbar over rollbar-browser

parent 66583a7d
import Rollbar from 'rollbar-browser'; import Rollbar from 'rollbar';
// Track error by https://sentry.io/ // Track error by https://sentry.io/
if (location.host === 'preview.pro.ant.design') { if (location.host === 'preview.pro.ant.design') {
Rollbar.init({ Rollbar.init({
accessToken: '033ca6d7c0eb4cc1831cf470c2649971', accessToken: '033ca6d7c0eb4cc1831cf470c2649971',
captureUncaught: true, captureUncaught: true,
captureUnhandledRejections: true,
payload: { payload: {
environment: 'production', environment: 'production',
}, },
......
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