diff --git a/package.json b/package.json index b6517ce5..386812e3 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ "devDependencies": { "@capacitor/assets": "^3.0.5", "@eslint/js": "^9.37.0", - "@sentry/cli": "^2.56.1", "@sveltejs/kit": "^2.46.5", "@sveltejs/vite-plugin-svelte": "^4.0.4", "@types/eslint": "^9.6.1", @@ -55,7 +54,6 @@ "@getalby/sdk": "^5.1.2", "@pomade/core": "^0.0.12", "@poppanator/sveltekit-svg": "^4.2.1", - "@sentry/browser": "^8.55.0", "@sveltejs/adapter-static": "^3.0.10", "@tiptap/core": "^2.26.3", "@types/qrcode": "^1.5.5", @@ -90,7 +88,6 @@ }, "pnpm": { "ignoredBuiltDependencies": [ - "@sentry/cli", "esbuild" ], "onlyBuiltDependencies": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d5aace9a..122d9c64 100644 Binary files a/pnpm-lock.yaml and b/pnpm-lock.yaml differ diff --git a/sourcemaps.sh b/sourcemaps.sh deleted file mode 100755 index dcd258a6..00000000 --- a/sourcemaps.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -hash=$(find build -type f -print0 | sort -z | xargs -0 sha1sum | sha1sum | awk '{print $1}') - -sentry-cli \ - --url https://glitchtip.coracle.social \ - --auth-token $GLITCHTIP_AUTH_TOKEN \ - --api-key $VITE_GLITCHTIP_API_KEY \ - sourcemaps \ - --org coracle \ - --project flotilla \ - --release $hash \ - upload \ - --url-prefix /_app/immutable/ \ - build/_app/immutable diff --git a/src/app/util/tracking.ts b/src/app/util/tracking.ts deleted file mode 100644 index 1fe479c5..00000000 --- a/src/app/util/tracking.ts +++ /dev/null @@ -1,23 +0,0 @@ -import {noop} from "@welshman/lib" -import * as Sentry from "@sentry/browser" -import {getSetting} from "@app/core/state" - -export const setupTracking = () => { - if (import.meta.env.VITE_GLITCHTIP_API_KEY) { - Sentry.init({ - dsn: import.meta.env.VITE_GLITCHTIP_API_KEY, - beforeSend(event: any) { - if (!getSetting("report_errors")) { - return null - } - - return event - }, - integrations(integrations) { - return integrations.filter(integration => integration.name !== "Breadcrumbs") - }, - }) - } - - return noop -} diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 06590a88..5307c39a 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -24,7 +24,6 @@ import AppContainer from "@app/components/AppContainer.svelte" import ModalContainer from "@app/components/ModalContainer.svelte" import {setupHistory} from "@app/util/history" - import {setupTracking} from "@app/util/tracking" import {setupAnalytics} from "@app/util/analytics" import {authPolicy, blockPolicy, trustPolicy, mostlyRestrictedPolicy} from "@app/util/policies" import {kv, db} from "@app/core/storage" @@ -131,8 +130,8 @@ // Remove policies when we're done unsubscribers.push(() => defaultSocketPolicies.splice(-policies.length)) - // History, navigation, bug tracking, application data - unsubscribers.push(setupHistory(), setupAnalytics(), setupTracking(), syncApplicationData()) + // History, navigation, application data + unsubscribers.push(setupHistory(), setupAnalytics(), syncApplicationData()) // Subscribe to badge count for changes unsubscribers.push(notifications.badgeCount.subscribe(notifications.handleBadgeCountChanges))