remove sentry
This commit is contained in:
parent
4d74e55265
commit
8005d7192e
1738
package-lock.json
generated
1738
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -98,7 +98,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "^3.556.0",
|
||||
"@sentry/sveltekit": "^8.30.0",
|
||||
"greeks": "^1.0.0",
|
||||
"html2canvas": "^1.4.1",
|
||||
"https": "^1.0.0",
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
import { handleErrorWithSentry, replayIntegration } from "@sentry/sveltekit";
|
||||
import * as Sentry from "@sentry/sveltekit";
|
||||
|
||||
Sentry.init({
|
||||
dsn: import.meta.env.VITE_SENTRY,
|
||||
|
||||
tracesSampleRate: 1.0,
|
||||
});
|
||||
|
||||
// If you have a custom error handler, pass it to `handleErrorWithSentry`
|
||||
export const handleError = handleErrorWithSentry();
|
||||
@ -1,16 +1,8 @@
|
||||
import { sequence } from "@sveltejs/kit/hooks";
|
||||
import * as Sentry from "@sentry/sveltekit";
|
||||
import PocketBase from "pocketbase";
|
||||
import { serializeNonPOJOs } from "$lib/utils";
|
||||
|
||||
Sentry.init({
|
||||
dsn: import.meta.env.VITE_SENTRY,
|
||||
tracesSampleRate: 1,
|
||||
});
|
||||
|
||||
export const handle = sequence(
|
||||
Sentry.sentryHandle(),
|
||||
async ({ event, resolve }) => {
|
||||
export const handle = sequence(async ({ event, resolve }) => {
|
||||
// Use optional chaining and nullish coalescing for safer property access
|
||||
const regionHeader =
|
||||
event?.request?.headers?.get("x-vercel-id") ??
|
||||
@ -81,6 +73,4 @@ export const handle = sequence(
|
||||
response.headers.append("set-cookie", cookieString);
|
||||
|
||||
return response;
|
||||
}
|
||||
);
|
||||
export const handleError = Sentry.handleErrorWithSentry();
|
||||
});
|
||||
|
||||
@ -1,16 +1,10 @@
|
||||
import { sentrySvelteKit } from "@sentry/sveltekit";
|
||||
import { sveltekit } from "@sveltejs/kit/vite";
|
||||
import { visualizer } from "rollup-plugin-visualizer";
|
||||
//import { visualizer } from "rollup-plugin-visualizer";
|
||||
|
||||
/** @type {import('vite').UserConfig} */
|
||||
const config = {
|
||||
plugins: [
|
||||
sentrySvelteKit({
|
||||
sourceMapsUploadOptions: {
|
||||
org: "stocknear",
|
||||
project: "stocknear",
|
||||
},
|
||||
}), //visualizer({ open: true }) // Plugin to visualize the bundle
|
||||
//visualizer({ open: true }) // Plugin to visualize the bundle
|
||||
sveltekit(),
|
||||
],
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user