Skip to content

Commit

Permalink
fix with-sentry by replacing withSourceMaps with productionBrowserSou…
Browse files Browse the repository at this point in the history
…rceMaps

removed the `withSourceMaps` package and changed to use `productionBrowserSourceMaps: true`
  • Loading branch information
lharries authored and Luke Harries committed Dec 31, 2020
1 parent 380afbf commit 00da735
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/with-sentry/next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// Use the hidden-source-map option when you don't want the source maps to be
// publicly available on the servers, only to the error reporting
const withSourceMaps = require('@zeit/next-source-maps')()

// Use the SentryWebpack plugin to upload the source maps during build step
const SentryWebpackPlugin = require('@sentry/webpack-plugin')
const {
Expand All @@ -23,7 +19,8 @@ const COMMIT_SHA =
process.env.SENTRY_DSN = SENTRY_DSN
const basePath = ''

module.exports = withSourceMaps({
module.exports = {
productionBrowserSourceMaps: true,
env: {
// Make the COMMIT_SHA available to the client so that Sentry events can be
// marked for the release they belong to. It may be undefined if running
Expand Down Expand Up @@ -85,4 +82,4 @@ module.exports = withSourceMaps({
return config
},
basePath,
})
}

0 comments on commit 00da735

Please sign in to comment.