From f2dc2793afe580eb7cde3ddb5c195abeed790b5f Mon Sep 17 00:00:00 2001 From: Luke Hagar Date: Fri, 17 May 2024 11:39:08 -0500 Subject: [PATCH] removed sentry --- src/hooks.client.ts | 23 ----------------------- src/hooks.server.ts | 16 ---------------- vite.config.ts | 9 --------- 3 files changed, 48 deletions(-) delete mode 100644 src/hooks.client.ts delete mode 100644 src/hooks.server.ts diff --git a/src/hooks.client.ts b/src/hooks.client.ts deleted file mode 100644 index 9bac050..0000000 --- a/src/hooks.client.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { dev } from '$app/environment'; -import { handleErrorWithSentry, replayIntegration } from '@sentry/sveltekit'; -import * as Sentry from '@sentry/sveltekit'; - -Sentry.init({ - environment: dev ? 'development' : 'production', - dsn: 'https://6c7cfa3b76b1700cb23c34ae2fcab4ad@sentry.plygrnd.org/3', - tracesSampleRate: 1.0, - - // This sets the sample rate to be 10%. You may want this to be 100% while - // in development and sample at a lower rate in production - replaysSessionSampleRate: 0.1, - - // If the entire session is not sampled, use the below sample rate to sample - // sessions when an error occurs. - replaysOnErrorSampleRate: 1.0, - - // If you don't want to use Session Replay, just remove the line below: - integrations: [replayIntegration()] -}); - -// If you have a custom error handler, pass it to `handleErrorWithSentry` -export const handleError = handleErrorWithSentry(); diff --git a/src/hooks.server.ts b/src/hooks.server.ts deleted file mode 100644 index 4c42e7a..0000000 --- a/src/hooks.server.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { sequence } from '@sveltejs/kit/hooks'; -import { handleErrorWithSentry, sentryHandle } from '@sentry/sveltekit'; -import * as Sentry from '@sentry/sveltekit'; -import { dev } from '$app/environment'; - -Sentry.init({ - environment: dev ? 'development' : 'production', - dsn: 'https://6c7cfa3b76b1700cb23c34ae2fcab4ad@sentry.plygrnd.org/3', - tracesSampleRate: 1.0 -}); - -// If you have custom handlers, make sure to place them after `sentryHandle()` in the `sequence` function. -export const handle = sequence(sentryHandle()); - -// If you have a custom error handler, pass it to `handleErrorWithSentry` -export const handleError = handleErrorWithSentry(); diff --git a/vite.config.ts b/vite.config.ts index c5a5dca..9c93cdf 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,18 +1,9 @@ -import { sentrySvelteKit } from '@sentry/sveltekit'; import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; import { purgeCss } from 'vite-plugin-tailwind-purgecss'; export default defineConfig({ plugins: [ - sentrySvelteKit({ - sourceMapsUploadOptions: { - org: 'sentry', - project: 'oas-def-gen', - url: 'https://sentry.plygrnd.org', - authToken: process.env.SENTRY_AUTH_TOKEN - } - }), sveltekit(), purgeCss({ safelist: {