gendesign/frontend/sentry.server.config.ts
lekss361 277499684b
All checks were successful
Deploy / changes (push) Successful in 4s
Deploy / build-backend (push) Has been skipped
Deploy / build-worker (push) Has been skipped
Deploy / build-frontend (push) Successful in 4m17s
Deploy / deploy (push) Successful in 31s
feat(frontend): @sentry/nextjs init для GlitchTip (#204 frontend) (#208)
2026-05-16 15:09:38 +00:00

10 lines
251 B
TypeScript

import * as Sentry from "@sentry/nextjs";
const dsn = process.env.GLITCHTIP_DSN ?? process.env.NEXT_PUBLIC_GLITCHTIP_DSN;
if (dsn) {
Sentry.init({
dsn,
environment: process.env.NODE_ENV ?? "development",
tracesSampleRate: 0.05,
});
}