All checks were successful
Build Docker Image / build (push) Successful in 5m8s
- Remove all Storybook files and configuration - Add type declarations for @vueuse/core, @formkit/core, vue3-apexcharts - Fix TypeScript configuration (typeRoots, include paths) - Fix Sentry config - move settings to plugin - Fix nullable prop assignments with ?? operator - Fix type narrowing issues with explicit type assertions - Fix Card component linkable computed properties - Update codegen with operationResultSuffix - Fix GraphQL operation type definitions
23 lines
481 B
TypeScript
23 lines
481 B
TypeScript
import * as Sentry from '@sentry/vue'
|
|
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
const config = useRuntimeConfig()
|
|
const dsn = config.public.sentryDsn
|
|
|
|
if (!dsn) {
|
|
return
|
|
}
|
|
|
|
Sentry.init({
|
|
app: nuxtApp.vueApp,
|
|
dsn,
|
|
integrations: [
|
|
Sentry.browserTracingIntegration({ router: nuxtApp.$router as any }),
|
|
Sentry.replayIntegration()
|
|
],
|
|
tracesSampleRate: 0.1,
|
|
replaysSessionSampleRate: 0.1,
|
|
replaysOnErrorSampleRate: 1.0
|
|
})
|
|
})
|