mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-03 20:31:23 -05:00
chore: make productionBrowserSourceMaps conditional to decrease build time (#7400)
This commit is contained in:
committed by
GitHub
parent
2740cd16b9
commit
ffcc101ed9
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user