Skip to content

Commit

Permalink
Added Sentry SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
crablab committed Jun 29, 2020
1 parent 4b081ea commit f813af0
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 2 deletions.
69 changes: 68 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"dependencies": {
"@firebase/app": "^0.6.2",
"@firebase/storage": "^0.3.32",
"@sentry/browser": "^5.18.1",
"@sentry/integrations": "^5.18.1",
"core-js": "^3.6.5",
"firebase": "^7.14.2",
"govuk-frontend": "^3.6.0",
Expand Down
11 changes: 10 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@ import * as filters from '@/filters';
import router from '@/router';
import store from '@/store';
import { auth } from '@/firebase';
//import firebase from '@firebase';
import * as Sentry from '@sentry/browser';
import * as Integrations from '@sentry/integrations';

if (process.env.NODE_ENV !== 'development') {
Sentry.init({
dsn: 'https://23ac92825117451eb421535be7e4c334@o323827.ingest.sentry.io/5301649',
environment: process.env.NODE_ENV,
release: process.env.npm_package_version,
integrations: [new Integrations.Vue({ Vue, attachProps: true })],
});
}
Vue.config.productionTip = false;

// Register global filters
Expand Down

0 comments on commit f813af0

Please sign in to comment.