chore: conditionally enable Sentry plugin based on authentication token (#6502)

This commit is contained in:
Victor Hugo dos Santos
2025-09-05 16:44:46 +07:00
committed by GitHub
parent 23143c8664
commit 892b55662e

View File

@@ -439,6 +439,6 @@ const sentryOptions = {
// Always enable Sentry plugin to inject Debug IDs
// Runtime Sentry reporting still depends on DSN being set via environment variables
const exportConfig = withSentryConfig(nextConfig, sentryOptions);
const exportConfig = process.env.SENTRY_AUTH_TOKEN ? withSentryConfig(nextConfig, sentryOptions) : nextConfig;
export default exportConfig;