fix: disable source maps in RDE dashboard build (#1611)

This commit is contained in:
Konsti Wohlwend 2026-06-16 16:29:15 -07:00 committed by GitHub
parent 7955ef2450
commit 010c114c49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,8 +70,9 @@ const nextConfig = {
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"],
// we're open-source, so we can provide source maps
productionBrowserSourceMaps: true,
// we're open-source, so we can provide source maps — but skip them for
// RDE standalone builds where they just take up space for no reason
productionBrowserSourceMaps: process.env.NEXT_CONFIG_OUTPUT !== "standalone",
poweredByHeader: false,