Add sourcemaps script

This commit is contained in:
Jon Staab
2024-10-30 14:33:25 -07:00
parent a5b0b769d5
commit 44daf9e98c
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -5,4 +5,5 @@ VITE_PLATFORM_LOGO=static/flotilla.png
VITE_PLATFORM_RELAY=
VITE_PLATFORM_ACCENT="#7161FF"
VITE_PLATFORM_DESCRIPTION="Flotilla is nostr — for communities."
VITE_SENTRY_DSN=
VITE_GLITCHTIP_API_KEY=
GLITCHTIP_AUTH_TOKEN=
+1
View File
@@ -5,6 +5,7 @@
"scripts": {
"dev": "vite dev",
"build": "./build.sh",
"sourcemaps": "sentry-cli --url https://glitchtip.coracle.social --auth-token $GLITCHTIP_AUTH_TOKEN --api-key $VITE_GLITCHTIP_API_KEY sourcemaps --org coracle --project flotilla --release $(cat package.json|jq -r '.version') upload --url-prefix /assets/ dist/assets",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
+2 -2
View File
@@ -1,9 +1,9 @@
import * as Sentry from "@sentry/browser"
export const setupTracking = () => {
if (import.meta.env.VITE_SENTRY_DSN) {
if (import.meta.env.VITE_GLITCHTIP_API_KEY) {
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
dsn: import.meta.env.VITE_GLITCHTIP_API_KEY,
tracesSampleRate: 0.01,
integrations(integrations) {
return integrations.filter(integration => integration.name !== 'Breadcrumbs')