Skip to content

Commit

Permalink
Merge pull request #22 from jac-uk/add-sentry
Browse files Browse the repository at this point in the history
Added Sentry SDK
  • Loading branch information
crablab committed Jul 17, 2020
2 parents 1473a7a + f813af0 commit ff74f22
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 1 deletion.
67 changes: 67 additions & 0 deletions 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 ff74f22

Please sign in to comment.