From bcbaa4e688901ad86546cdfd30e3d0288fe79d30 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 30 Jan 2023 09:40:29 -0800 Subject: [PATCH] Only create source maps when setting SOURCE_MAPS --- web/next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/next.config.js b/web/next.config.js index 90d3b9d98..deb951cca 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -5,7 +5,7 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({ module.exports = withBundleAnalyzer( withLess({ - productionBrowserSourceMaps: true, + productionBrowserSourceMaps: process.env.SOURCE_MAPS === 'true', trailingSlash: true, reactStrictMode: true, images: {