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

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