sentry.ts 271 B

12345678
  1. import { useContext } from "@nuxtjs/composition-api"
  2. import * as Sentry from "@sentry/browser"
  3. export function useSentry() {
  4. // TODO: Make Sentry load lazy at some point ? (see nuxt/sentry)
  5. const { $sentry } = useContext()
  6. return $sentry as any as typeof Sentry
  7. }