regexper-static/src/sentry.js
2018-02-11 11:18:27 -05:00

13 lines
319 B
JavaScript

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 { Raven, setupRaven };