Skip to content

Commit 168420d

Browse files
author
Ari
committed
Add Sentry.init to main.js
1 parent 48f81ee commit 168420d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import VueAnalytics from 'vue-analytics'
66
import App from './App.vue'
77
import store from './store'
88

9+
import * as Sentry from '@sentry/browser'
10+
import * as Integrations from '@sentry/integrations'
11+
912
import { library } from '@fortawesome/fontawesome-svg-core'
1013
import { faCopy } from '@fortawesome/free-solid-svg-icons/faCopy'
1114
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
@@ -31,6 +34,16 @@ if (process.env.NODE_ENV === 'production') {
3134
screenview: true
3235
}
3336
})
37+
Sentry.init({
38+
dsn: '',
39+
integrations: [
40+
new Integrations.Vue({
41+
Vue,
42+
attachProps: true,
43+
logErrors: true
44+
})
45+
]
46+
})
3447
}
3548

3649
new Vue({

0 commit comments

Comments
 (0)