* 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>
26 lines
606 B
TypeScript
26 lines
606 B
TypeScript
import { sentryOnBuildEnd } from "@sentry/react-router";
|
|
import type { Config } from "@react-router/dev/config";
|
|
|
|
export default {
|
|
// Config options...
|
|
// Server-side render by default, to enable SPA mode set this to `false`
|
|
ssr: true,
|
|
|
|
future: {
|
|
v8_middleware: true,
|
|
},
|
|
|
|
buildEnd: async (
|
|
{
|
|
viteConfig: viteConfig,
|
|
reactRouterConfig: reactRouterConfig,
|
|
buildManifest: buildManifest
|
|
}
|
|
) => {
|
|
await sentryOnBuildEnd({
|
|
viteConfig: viteConfig,
|
|
reactRouterConfig: reactRouterConfig,
|
|
buildManifest: buildManifest
|
|
});
|
|
}
|
|
} satisfies Config;
|