Skip to content

Commit

Permalink
use next config source maps option
Browse files Browse the repository at this point in the history
  • Loading branch information
zchsh committed Jul 26, 2024
1 parent 182ae41 commit b25f984
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,9 @@ module.exports = withHashicorp({
'unist-util-visit',
'unist-util-visit-parents',
],
productionBrowserSourceMaps: true,
webpack(config) {
config.plugins.push(HashiConfigPlugin())

if (process.env.VERCEL_ENV !== 'development') {
config.devtool = 'hidden-source-map'
}

return config
},
async headers() {
Expand Down

0 comments on commit b25f984

Please sign in to comment.