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
No known key found for this signature in database
GPG key ID: 4345B2060657F330

View file

@ -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: {