summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/raven/index.js
blob: 5325e495815f705813969797c88305659413ef97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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,
  });

  return RavenConfig;
};

index();

export default index;