Introduces @trails-cool/sentry-config with three helpers that encode the common Sentry.init options: - nodeSentryConfig(appContext) for the two HTTP servers - browserSentryConfig(appContext, env) for the Journal client - mobileSentryConfig(__DEV__) for the React Native app - drop404s beforeSend for servers Also fixes three inconsistencies found in the audit: - Planner server was missing sendDefaultPii: false (IPs could leak) - Planner entry.server.tsx didn't call Sentry.captureException on SSR render errors; Journal's SSR did - Sentry.init location now matches across apps (both in server.ts; Journal previously had it in app/entry.server.tsx, which meant init ran lazily on first request rather than at server startup) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
61 lines
1.8 KiB
JSON
61 lines
1.8 KiB
JSON
{
|
|
"name": "@trails-cool/planner",
|
|
"private": true,
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "react-router dev",
|
|
"build": "react-router build",
|
|
"start": "node server.ts",
|
|
"typecheck": "react-router typegen && tsc",
|
|
"lint": "eslint .",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@codemirror/commands": "^6.10.3",
|
|
"@codemirror/language": "^6.12.3",
|
|
"@codemirror/state": "^6.6.0",
|
|
"@codemirror/view": "^6.41.0",
|
|
"@geoman-io/leaflet-geoman-free": "^2.19.3",
|
|
"@react-router/node": "catalog:",
|
|
"@react-router/serve": "catalog:",
|
|
"@sentry/node": "catalog:",
|
|
"@sentry/react": "catalog:",
|
|
"@trails-cool/db": "workspace:*",
|
|
"@trails-cool/jobs": "workspace:*",
|
|
"@trails-cool/gpx": "workspace:*",
|
|
"@trails-cool/i18n": "workspace:*",
|
|
"@trails-cool/map": "workspace:*",
|
|
"@trails-cool/map-core": "workspace:*",
|
|
"@trails-cool/sentry-config": "workspace:*",
|
|
"@trails-cool/types": "workspace:*",
|
|
"@trails-cool/ui": "workspace:*",
|
|
"codemirror": "^6.0.2",
|
|
"drizzle-orm": "catalog:",
|
|
"isbot": "^5.1.37",
|
|
"lib0": "^0.2.117",
|
|
"pino": "^10.3.1",
|
|
"prom-client": "^15.1.3",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"react-router": "catalog:",
|
|
"ws": "^8.20.0",
|
|
"y-codemirror.next": "^0.3.5",
|
|
"y-protocols": "^1.0.7",
|
|
"y-websocket": "^3.0.0",
|
|
"yjs": "^13.6.30"
|
|
},
|
|
"devDependencies": {
|
|
"@react-router/dev": "catalog:",
|
|
"@tailwindcss/vite": "catalog:",
|
|
"@types/leaflet.markercluster": "^1.5.6",
|
|
"@types/react": "catalog:",
|
|
"@types/react-dom": "catalog:",
|
|
"@types/ws": "^8.18.1",
|
|
"leaflet.markercluster": "^1.5.3",
|
|
"pino-pretty": "^13.1.3",
|
|
"tailwindcss": "catalog:",
|
|
"typescript": "catalog:",
|
|
"vite": "catalog:"
|
|
}
|
|
}
|