20 lines
386 B
JavaScript
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;
|