Browse Source

Only create source maps when setting SOURCE_MAPS

pull/2647/head
Gabe Kangas 3 years ago
parent
commit
bcbaa4e688
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 2
      web/next.config.js

2
web/next.config.js

@ -5,7 +5,7 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({ @@ -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: {

Loading…
Cancel
Save