From da6b8a27820ba195170f1ce241cf6c1205708d44 Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Sat, 26 Oct 2024 13:03:20 -0700 Subject: [PATCH] add comments --- web/next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/next.config.js b/web/next.config.js index b035f444863..3b4c7bbd379 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -16,6 +16,10 @@ const nextConfig = { }, }; +// Sentry configuration for error monitoring: +// - Without SENTRY_AUTH_TOKEN and NEXT_PUBLIC_SENTRY_DSN: Sentry is completely disabled +// - With both configured: Only unhandled errors are captured (no performance/session tracking) + // Determine if Sentry should be enabled const sentryEnabled = Boolean( process.env.SENTRY_AUTH_TOKEN && process.env.NEXT_PUBLIC_SENTRY_DSN