* 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>
21 lines
No EOL
539 B
TypeScript
21 lines
No EOL
539 B
TypeScript
import * as Sentry from "@sentry/react-router";
|
|
import { startTransition, StrictMode } from "react";
|
|
import { hydrateRoot } from "react-dom/client";
|
|
import { HydratedRouter } from "react-router/dom";
|
|
|
|
Sentry.init({
|
|
dsn: "https://1a366de494f1acf8fc94a4c592807b10@o1356837.ingest.us.sentry.io/4511024367861760",
|
|
enabled: import.meta.env.PROD,
|
|
sendDefaultPii: true,
|
|
integrations: [],
|
|
tracesSampleRate: 0,
|
|
});
|
|
|
|
startTransition(() => {
|
|
hydrateRoot(
|
|
document,
|
|
<StrictMode>
|
|
<HydratedRouter />
|
|
</StrictMode>,
|
|
);
|
|
}); |