gitlab-org--gitlab-foss/app/assets/javascripts/raven/index.js

17 lines
310 B
JavaScript
Raw Normal View History

import RavenConfig from './raven_config';
2017-04-14 20:09:16 +00:00
const index = function index() {
RavenConfig.init({
sentryDsn: gon.sentry_dsn,
currentUserId: gon.current_user_id,
whitelistUrls: [gon.gitlab_url],
2017-05-05 14:55:55 +00:00
isProduction: process.env.NODE_ENV,
2017-04-14 20:09:16 +00:00
});
return RavenConfig;
};
index();
export default index;