Add cert with force ssl
enable slack notifications tidy up rollbar a bit
This commit is contained in:
19
src/core/rollbar.js
Normal file
19
src/core/rollbar.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import Rollbar from 'rollbar';
|
||||
import { analytics } from '../config';
|
||||
|
||||
const serverToken = analytics.rollbar.serverToken;
|
||||
|
||||
export default {
|
||||
errorHandler() {
|
||||
return Rollbar.errorHandler(serverToken);
|
||||
},
|
||||
handleError(err) {
|
||||
return Rollbar.handleError(err);
|
||||
},
|
||||
init() {
|
||||
Rollbar.init(serverToken);
|
||||
Rollbar.handleUncaughtExceptionsAndRejections(serverToken, {
|
||||
exitOnUncaughtException: true,
|
||||
});
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user