mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 10:07:19 +01:00
No-ops until NEXT_PUBLIC_SENTRY_DSN is set. sendDefaultPii=false, traces 0.1, no replay. Build passes without DSN or auth token. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
10 lines
277 B
TypeScript
10 lines
277 B
TypeScript
// Sentry server-side init (Node.js runtime).
|
|
// Env-gated: without NEXT_PUBLIC_SENTRY_DSN the SDK is disabled and no-ops.
|
|
import * as Sentry from "@sentry/nextjs";
|
|
|
|
Sentry.init({
|
|
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
tracesSampleRate: 0.1,
|
|
sendDefaultPii: false,
|
|
});
|