Some checks failed
QA Gate (P0/P1) / Test affected app (pull_request) Has been cancelled
Sase frontend has Faro (RUM) and PostHog (product analytics) but no browser error monitoring. A recent panel session investigation (panel insight cmpv9q3ms004dfcphluw0z8bh — silent rage-clicks after parts_panel_viewed with no API call) couldn't be confirmed or refuted from JS error data because there was no JS error channel at all. This adds one. - @sentry/react ^9 (dynamic import in lib/sentry.ts so the bundle only pays the SDK cost when DSN is configured) - Init is gated on VITE_SENTRY_DSN — unset = no-op, no behaviour change - Replay only fires on error (sessionSampleRate 0, onErrorSampleRate 1) - KVKK: sendDefaultPii false, maskAllText + blockAllMedia on replay - Builds emit hidden source maps so Sentry can de-minify traces while end users don't fetch the maps in the browser - docker-compose.coolify.yml threads VITE_SENTRY_* through as build args (VITE_* must be build-time; runtime env never reaches a Vite bundle) Wiring on the Coolify side is a separate manual step — set VITE_SENTRY_DSN on the prod (ro48g…) and/or dev (jwgwkg…) app and redeploy. Backend Sentry (NestJS) is unchanged. Refs: Süper Panel docs/ARCHITECTURE.md, panel sentry-archive job.
64 lines
1.8 KiB
JSON
64 lines
1.8 KiB
JSON
{
|
|
"name": "web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite --port 3000",
|
|
"generate-routes": "tsr generate",
|
|
"build": "tsr generate && tsc -b && vite build",
|
|
"prerender": "node scripts/prerender.mjs",
|
|
"preview": "vite preview --port 3000",
|
|
"lint": "biome check src/",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:watch": "vitest",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"dependencies": {
|
|
"@cardog-icons/react": "^1.1.1",
|
|
"@grafana/faro-web-sdk": "^2.2.4",
|
|
"@grafana/faro-web-tracing": "^2.2.4",
|
|
"@remotion/player": "^4.0.422",
|
|
"@sase/shared": "workspace:*",
|
|
"@sase/ui": "workspace:*",
|
|
"@sentry/react": "^9.0.0",
|
|
"@tanstack/react-query": "^5.62.0",
|
|
"@tanstack/react-router": "^1.120.0",
|
|
"better-auth": "^1.2.0",
|
|
"canvas-confetti": "^1.9.4",
|
|
"clsx": "^2.1.0",
|
|
"lucide-react": "^0.468.0",
|
|
"posthog-js": "^1.347.2",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-markdown": "^9.1.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"remotion": "^4.0.422",
|
|
"sileo": "^0.0.7",
|
|
"tailwind-merge": "^2.6.0",
|
|
"zod": "^3.24.0",
|
|
"zustand": "^5.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.0.0",
|
|
"@tailwindcss/vite": "^4.0.0",
|
|
"@tanstack/react-router-devtools": "^1.120.0",
|
|
"@tanstack/router-cli": "^1.159.4",
|
|
"@tanstack/router-plugin": "^1.120.0",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/canvas-confetti": "^1.9.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@vitejs/plugin-react": "^4.5.0",
|
|
"jsdom": "^28.0.0",
|
|
"postcss": "^8.4.0",
|
|
"tailwindcss": "^4.0.0",
|
|
"typescript": "^5.7.0",
|
|
"vite": "^6.3.0",
|
|
"vitest": "^3.2.4"
|
|
}
|
|
}
|