-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathmain.ts
44 lines (37 loc) · 938 Bytes
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import './assets/main.css';
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import { createPinia } from 'pinia';
import * as Sentry from '@sentry/vue';
import { browserTracingIntegration, vueIntegration } from '@sentry/vue';
const app = createApp(App);
const pinia = createPinia();
Sentry.init({
app,
dsn: import.meta.env.PUBLIC_E2E_TEST_DSN,
tracesSampleRate: 1.0,
integrations: [
vueIntegration({
tracingOptions: {
trackComponents: ['ComponentMainView', '<ComponentOneView>'],
},
}),
browserTracingIntegration({
router,
}),
],
tunnel: `http://localhost:3031/`, // proxy server
});
pinia.use(
Sentry.createSentryPiniaPlugin({
actionTransformer: action => `Transformed: ${action}`,
stateTransformer: state => ({
transformed: true,
...state,
}),
}),
);
app.use(pinia);
app.use(router);
app.mount('#app');