Only create source maps when setting SOURCE_MAPS

This commit is contained in:
Gabe Kangas
2023-01-30 09:40:29 -08:00
parent 3f4537252b
commit bcbaa4e688

View File

@@ -5,7 +5,7 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
module.exports = withBundleAnalyzer( module.exports = withBundleAnalyzer(
withLess({ withLess({
productionBrowserSourceMaps: true, productionBrowserSourceMaps: process.env.SOURCE_MAPS === 'true',
trailingSlash: true, trailingSlash: true,
reactStrictMode: true, reactStrictMode: true,
images: { images: {