chore: remove Sentry integration
CI / check (push) Successful in 21s
CI / release (push) Skipped
CI / deploy (push) Successful in 53s

This commit is contained in:
Simo committed 2026-08-01 22:12:31 +02:00
1 parent c7fb37356e
commit 1f4aadb3d7
21 files changed
+53 -1960

No files matched your search

+1 -6
View File
@@ -1,8 +1,7 @@
import * as Sentry from "@sentry/nextjs";
import { logger } from "@/lib/logger";
/**
* Log unexpected errors and forward them to Sentry when a DSN is configured.
* Log unexpected errors through the structured application logger.
* Domain errors (validation, auth, etc.) should NOT go through here.
*/
export function reportError(error: unknown, context = "Unhandled error"): void {
@@ -11,8 +10,4 @@ export function reportError(error: unknown, context = "Unhandled error"): void {
err: message,
name: error instanceof Error ? error.name : undefined,
});
if (process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN) {
Sentry.captureException(error);
}
}