mirror of
https://github.com/LukeHagar/openapi-definition-generator.git
synced 2025-12-06 04:20:23 +00:00
removed sentry
This commit is contained in:
@@ -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();
|
|
||||||
@@ -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();
|
|
||||||
@@ -1,18 +1,9 @@
|
|||||||
import { sentrySvelteKit } from '@sentry/sveltekit';
|
|
||||||
import { sveltekit } from '@sveltejs/kit/vite';
|
import { sveltekit } from '@sveltejs/kit/vite';
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import { purgeCss } from 'vite-plugin-tailwind-purgecss';
|
import { purgeCss } from 'vite-plugin-tailwind-purgecss';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
sentrySvelteKit({
|
|
||||||
sourceMapsUploadOptions: {
|
|
||||||
org: 'sentry',
|
|
||||||
project: 'oas-def-gen',
|
|
||||||
url: 'https://sentry.plygrnd.org',
|
|
||||||
authToken: process.env.SENTRY_AUTH_TOKEN
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
sveltekit(),
|
sveltekit(),
|
||||||
purgeCss({
|
purgeCss({
|
||||||
safelist: {
|
safelist: {
|
||||||
|
|||||||
Reference in New Issue
Block a user