* feat: add Sentry error monitoring (#77) Installs and configures @sentry/react-router with server and client instrumentation. Disabled in development to avoid noise; only active in production. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore: add VSCode Sentry MCP server config Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: pass vite env to sentryReactRouter plugin sentryReactRouter requires the ConfigEnv as a second argument to read the vite `command` property. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
8 lines
No EOL
260 B
JavaScript
8 lines
No EOL
260 B
JavaScript
import * as Sentry from '@sentry/react-router';
|
|
|
|
Sentry.init({
|
|
dsn: "https://1a366de494f1acf8fc94a4c592807b10@o1356837.ingest.us.sentry.io/4511024367861760",
|
|
enabled: process.env.NODE_ENV === "production",
|
|
sendDefaultPii: true,
|
|
tracesSampleRate: 0,
|
|
}); |