Skip to content

Commit

Permalink
Added: sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanSerikov authored and m-kus committed Dec 4, 2020
1 parent 1b3e289 commit 50315f6
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 0 deletions.
89 changes: 89 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 @@ -10,6 +10,8 @@
"dependencies": {
"@airgap/beacon-sdk": "^1.1.0",
"@koumoul/vjsf": "^1.10.3",
"@sentry/browser": "^5.27.6",
"@sentry/integrations": "^5.27.6",
"@taquito/beacon-wallet": "^6.3.2-beta.0",
"@taquito/taquito": "^6.3.2-beta.0",
"@thanos-wallet/dapp": "^0.5.0",
Expand Down
14 changes: 14 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,20 @@ getRuntimeConfig().then(async function (config) {
}
});

if (config.sentry_dsn !== "") {
Sentry.init({
dsn: config.sentry_dsn,
integrations: [new VueIntegration({
Vue,
attachProps: true,
tracing: true,
tracingOptions: {
trackComponents: true,
},
})],
});
}

router.addRoutes([
{
path: '/@:slug([a-zA-Z0-9_]*)',
Expand Down

0 comments on commit 50315f6

Please sign in to comment.