chore: make productionBrowserSourceMaps conditional to decrease build time (#7400)

This commit is contained in:
Dhruwang Jariwala
2026-03-02 15:19:00 +05:30
committed by GitHub
parent 2740cd16b9
commit ffcc101ed9
+2 -1
View File
@@ -14,7 +14,8 @@ const nextConfig = {
basePath: process.env.BASE_PATH || undefined, basePath: process.env.BASE_PATH || undefined,
output: "standalone", output: "standalone",
poweredByHeader: false, 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: [ serverExternalPackages: [
"@aws-sdk", "@aws-sdk",
"@opentelemetry/api", "@opentelemetry/api",