2017-08-17 22:00:37 +05:30
|
|
|
import RavenConfig from './raven_config';
|
|
|
|
|
|
|
|
const index = function index() {
|
|
|
|
RavenConfig.init({
|
|
|
|
sentryDsn: gon.sentry_dsn,
|
|
|
|
currentUserId: gon.current_user_id,
|
2019-07-31 22:56:46 +05:30
|
|
|
whitelistUrls:
|
|
|
|
process.env.NODE_ENV === 'production'
|
|
|
|
? [gon.gitlab_url]
|
|
|
|
: [gon.gitlab_url, 'webpack-internal://'],
|
|
|
|
environment: gon.sentry_environment,
|
2017-08-17 22:00:37 +05:30
|
|
|
release: gon.revision,
|
|
|
|
tags: {
|
|
|
|
revision: gon.revision,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
return RavenConfig;
|
|
|
|
};
|
|
|
|
|
|
|
|
index();
|
|
|
|
|
|
|
|
export default index;
|