Add sourcemaps script
This commit is contained in:
@@ -5,4 +5,5 @@ VITE_PLATFORM_LOGO=static/flotilla.png
|
|||||||
VITE_PLATFORM_RELAY=
|
VITE_PLATFORM_RELAY=
|
||||||
VITE_PLATFORM_ACCENT="#7161FF"
|
VITE_PLATFORM_ACCENT="#7161FF"
|
||||||
VITE_PLATFORM_DESCRIPTION="Flotilla is nostr — for communities."
|
VITE_PLATFORM_DESCRIPTION="Flotilla is nostr — for communities."
|
||||||
VITE_SENTRY_DSN=
|
VITE_GLITCHTIP_API_KEY=
|
||||||
|
GLITCHTIP_AUTH_TOKEN=
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
"build": "./build.sh",
|
"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": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||||
"lint": "prettier --check . && eslint .",
|
"lint": "prettier --check . && eslint .",
|
||||||
|
|||||||
+2
-2
@@ -1,9 +1,9 @@
|
|||||||
import * as Sentry from "@sentry/browser"
|
import * as Sentry from "@sentry/browser"
|
||||||
|
|
||||||
export const setupTracking = () => {
|
export const setupTracking = () => {
|
||||||
if (import.meta.env.VITE_SENTRY_DSN) {
|
if (import.meta.env.VITE_GLITCHTIP_API_KEY) {
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: import.meta.env.VITE_SENTRY_DSN,
|
dsn: import.meta.env.VITE_GLITCHTIP_API_KEY,
|
||||||
tracesSampleRate: 0.01,
|
tracesSampleRate: 0.01,
|
||||||
integrations(integrations) {
|
integrations(integrations) {
|
||||||
return integrations.filter(integration => integration.name !== 'Breadcrumbs')
|
return integrations.filter(integration => integration.name !== 'Breadcrumbs')
|
||||||
|
|||||||
Reference in New Issue
Block a user