From 010c114c4956e43a596a871008b71d9e8c71a3b4 Mon Sep 17 00:00:00 2001 From: Konsti Wohlwend Date: Tue, 16 Jun 2026 16:29:15 -0700 Subject: [PATCH] fix: disable source maps in RDE dashboard build (#1611) --- apps/dashboard/next.config.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/next.config.mjs b/apps/dashboard/next.config.mjs index 1460af495..1f7a798f9 100644 --- a/apps/dashboard/next.config.mjs +++ b/apps/dashboard/next.config.mjs @@ -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,