regexper-static/src/sentry.js

13 lines
312 B
JavaScript
Raw Normal View History

2018-02-11 15:41:03 +00:00
import Raven from 'raven-js';
const setupRaven = () => {
Raven.config(process.env.SENTRY_KEY, {
whitelistUrls: [/https:\/\/(.*\.)?regexper\.com/],
environment: process.env.NODE_ENV,
debug: (process.env.NODE_ENV !== 'production'),
release: process.env.BUILD_ID
});
};
export { setupRaven };