Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « raven « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: edc2293915f607634ab3e7060fc83c05f6333348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;