Skip to content

Commit

Permalink
➕ Add client side sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Sep 4, 2024
1 parent cb26c1a commit e854623
Show file tree
Hide file tree
Showing 4 changed files with 773 additions and 29 deletions.
1 change: 1 addition & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default defineNuxtConfig({
'@/assets/styles/global.css'
],
modules: [
'@sentry/nuxt/module',
'@pinia/nuxt',
'@nuxtjs/eslint-module',
'@nuxt/ui',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@likecoin/wallet-connector": "^0.26.6",
"@nuxt/ui": "2.13.0",
"@pinia/nuxt": "^0.4.8",
"@sentry/nuxt": "^8.27.0",
"bignumber.js": "^9.1.0",
"buffer": "^6.0.3",
"cosmjs-types": "^0.8.0",
Expand Down
9 changes: 9 additions & 0 deletions sentry.client.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as Sentry from '@sentry/nuxt'

Sentry.init({
dsn: 'https://[email protected]/4507887589523456',

// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0
})
Loading

0 comments on commit e854623

Please sign in to comment.