gitlab-org--gitlab-foss/app/assets/javascripts/raven/index.js
2017-05-21 13:38:03 +01:00

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;