first commit
This commit is contained in:
21
resources/frontend/core/plugins/sentry.js
Normal file
21
resources/frontend/core/plugins/sentry.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import * as Sentry from '@sentry/browser';
|
||||
import * as Integrations from '@sentry/integrations';
|
||||
import Vue from 'vue';
|
||||
|
||||
if (
|
||||
process.env.NODE_ENV !== 'development' &&
|
||||
'VUE_APP_SENTRY_DSN' in process.env &&
|
||||
process.env.VUE_APP_SENTRY_DSN !== 'undefined'
|
||||
) {
|
||||
Sentry.init({
|
||||
release: process.env.VUE_APP_VERSION,
|
||||
environment: process.env.NODE_ENV,
|
||||
dsn: process.env.VUE_APP_SENTRY_DSN,
|
||||
integrations: [
|
||||
new Integrations.Vue({
|
||||
Vue,
|
||||
attachProps: true,
|
||||
}),
|
||||
],
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user