Skip to content

Instantly share code, notes, and snippets.

View cas-technology's full-sized avatar

Cas cas-technology

  • The Netherlands
View GitHub Profile
@cas-technology
cas-technology / 0.sentry.ts
Created June 15, 2023 13:22
Sentry plugin for Nuxt 3
import * as Sentry from '@sentry/vue';
import { Integrations } from '@sentry/tracing';
import { Event, EventHint, User } from '@sentry/types';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const SentryPlugin: any = defineNuxtPlugin((nuxtApp) => {
const config = useRuntimeConfig().public;
const { vueApp } = nuxtApp;
// set the config (env) variables and provide some defaults