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
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2018-02-11 16:18:27 +00:00
|
|
|
export { Raven, setupRaven };
|