rollbar.js 352 Bytes
Newer Older
afc163's avatar
afc163 committed
1
import Rollbar from 'rollbar';
2

偏右's avatar
偏右 committed
3
// Track error by rollbar.com
jim's avatar
jim committed
4
if (window.location.host === 'preview.pro.ant.design') {
5 6 7
  Rollbar.init({
    accessToken: '033ca6d7c0eb4cc1831cf470c2649971',
    captureUncaught: true,
afc163's avatar
afc163 committed
8
    captureUnhandledRejections: true,
afc163's avatar
afc163 committed
9
    hostWhiteList: ['ant.design'],
10 11 12 13 14
    payload: {
      environment: 'production',
    },
  });
}