debian-mirror-gitlab/app/assets/javascripts/raven/index.js

21 lines
386 B
JavaScript
Raw Normal View History

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,
whitelistUrls: [gon.gitlab_url],
isProduction: process.env.NODE_ENV,
release: gon.revision,
tags: {
revision: gon.revision,
},
});
return RavenConfig;
};
index();
export default index;