Files
convex-monorepo-payload/apps/next/src/sentry.server.config.ts
T
Gabriel Brown f39376a887 Add PostHog, move Plausible to v4, and drop Sentry session replay
PostHog loads after the page is idle through a same-origin /ingest proxy and follows the signed-in Convex user. Plausible uses the per-site script through a /pa proxy, clear of Payload's /api routes. Sentry keeps errors and traces only. Pages load only the @gib/ui modules they import, and client code reads public env from publicEnv.ts so zod stays out of the browser.
2026-10-01 14:42:29 -04:00

11 lines
264 B
TypeScript

import { env } from '@/env';
import * as Sentry from '@sentry/nextjs';
Sentry.init({
dsn: env.NEXT_PUBLIC_SENTRY_DSN,
// One in ten requests keeps traces useful without loading the home server.
tracesSampleRate: 0.1,
enableLogs: true,
debug: false,
});