diff --git a/examples/with-sentry/next.config.js b/examples/with-sentry/next.config.js index c5047243cc2b33b..ce5e7e3555d4440 100644 --- a/examples/with-sentry/next.config.js +++ b/examples/with-sentry/next.config.js @@ -7,6 +7,16 @@ const { withSentryConfig } = require('@sentry/nextjs') const moduleExports = { // Your existing module.exports + + sentry: { + // Use `hidden-source-map` rather than `source-map` as the Webpack `devtool` + // for client-side builds. (This will be the default starting in + // `@sentry/nextjs` version 8.0.0.) See + // https://webpack.js.org/configuration/devtool/ and + // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#use-hidden-source-map + // for more information. + hideSourceMaps: true, + }, } // Make sure adding Sentry options is the last code to run before exporting, to