debian-mirror-gitlab/app/assets/javascripts/raven/index.js
2017-08-17 22:00:37 +05:30

20 lines
386 B
JavaScript

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;