From ffcc101ed9a367eeba930eeeeae8ca1c8b5b791f Mon Sep 17 00:00:00 2001 From: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com> Date: Mon, 2 Mar 2026 15:19:00 +0530 Subject: [PATCH] chore: make productionBrowserSourceMaps conditional to decrease build time (#7400) --- apps/web/next.config.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index ecbc3081ac..b7a4a85d60 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -14,7 +14,8 @@ const nextConfig = { basePath: process.env.BASE_PATH || undefined, output: "standalone", poweredByHeader: false, - productionBrowserSourceMaps: true, + // Enable source maps only when uploading to Sentry (CI/production); skip for faster local builds + productionBrowserSourceMaps: !!process.env.SENTRY_AUTH_TOKEN, serverExternalPackages: [ "@aws-sdk", "@opentelemetry/api",