ci: migrate to @sentry/nuxt
This commit is contained in:
@@ -40,6 +40,7 @@ export default defineNuxtConfig({
|
||||
'@pinia-plugin-persistedstate/nuxt',
|
||||
'@nuxtjs/i18n',
|
||||
'@nuxt/devtools',
|
||||
'@sentry/nuxt/module',
|
||||
],
|
||||
piniaPersistedstate: {
|
||||
cookieOptions: {
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@
|
||||
"@auth0/auth0-vue": "^2.3.3",
|
||||
"@mdi/font": "^7.4.47",
|
||||
"@pinia/nuxt": "^0.5.1",
|
||||
"@sentry/browser": "^8.0.0",
|
||||
"@sentry/nuxt": "^8.35.0",
|
||||
"@vue/apollo-composable": "^4.0.1",
|
||||
"apollo-link-sentry": "^4.0.0",
|
||||
"date-fns": "^4.0.0",
|
||||
|
||||
@@ -15,9 +15,6 @@ import { DefaultApolloClient, provideApolloClient } from '@vue/apollo-composable
|
||||
import type { Auth0VueClient } from '@auth0/auth0-vue'
|
||||
import { defineNuxtPlugin, useNuxtApp } from '#app'
|
||||
import { envConfig } from '~/utils/environment'
|
||||
// The side effect of patching fetch() has to occur before configuring Apollo Client
|
||||
// https://github.com/getsentry/sentry-javascript/issues/2860#issuecomment-684514367
|
||||
import './sentry'
|
||||
|
||||
const apiUrl = envConfig(window.location.hostname).apiUrl
|
||||
const wsUrl = apiUrl.replace(/^http/, 'ws')
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import * as Sentry from '@sentry/browser'
|
||||
import { defineNuxtPlugin } from '#app'
|
||||
import * as Sentry from '@sentry/nuxt';
|
||||
import { envConfig } from '~/utils/environment'
|
||||
|
||||
const env = envConfig(window.location.hostname)
|
||||
@@ -16,6 +15,3 @@ Sentry.init({
|
||||
replaysSessionSampleRate: env.replaysSessionSampleRate,
|
||||
replaysOnErrorSampleRate: env.replaysOnErrorSampleRate,
|
||||
})
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
})
|
||||
Reference in New Issue
Block a user