- @sentry/vite-plugin uploads source maps during Docker build - Release tagged with git SHA (SENTRY_RELEASE) on both client and server - Environment set to production/development for filtering - CD passes SENTRY_AUTH_TOKEN + SENTRY_RELEASE as Docker build args - docker-compose passes SENTRY_RELEASE to runtime containers Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
714 B
TypeScript
23 lines
714 B
TypeScript
import * as Sentry from "@sentry/react";
|
|
import { startTransition, StrictMode } from "react";
|
|
import { hydrateRoot } from "react-dom/client";
|
|
import { HydratedRouter } from "react-router/dom";
|
|
|
|
Sentry.init({
|
|
dsn: "https://5215134cd78d5e6c199e29300b8425af@o4509530546634752.ingest.de.sentry.io/4511102546608208",
|
|
integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
|
|
environment: import.meta.env.PROD ? "production" : "development",
|
|
tracesSampleRate: 0.1,
|
|
replaysSessionSampleRate: 0,
|
|
replaysOnErrorSampleRate: 1.0,
|
|
enabled: import.meta.env.PROD,
|
|
});
|
|
|
|
startTransition(() => {
|
|
hydrateRoot(
|
|
document,
|
|
<StrictMode>
|
|
<HydratedRouter />
|
|
</StrictMode>,
|
|
);
|
|
});
|