diff --git a/examples/with-sentry/next.config.js b/examples/with-sentry/next.config.js index 1579ed872c509..96d8cd909a0a1 100644 --- a/examples/with-sentry/next.config.js +++ b/examples/with-sentry/next.config.js @@ -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 { @@ -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 @@ -85,4 +82,4 @@ module.exports = withSourceMaps({ return config }, basePath, -}) +} diff --git a/examples/with-sentry/package.json b/examples/with-sentry/package.json index fc423c0f95233..ceeab004b5515 100644 --- a/examples/with-sentry/package.json +++ b/examples/with-sentry/package.json @@ -12,7 +12,6 @@ "@sentry/integrations": "^5.21.3", "@sentry/node": "^5.21.3", "@sentry/webpack-plugin": "^1.12.1", - "@zeit/next-source-maps": "0.0.4-canary.1", "next": "latest", "react": "^16.8.6", "react-dom": "^16.8.6"