I have a freshly-minted Next app through create-next-app and Sentry integration through @sentry/wizard as I want to debug our broken Sentry intgration in our app.
Whenever I tried to simulate an exception through /sentry-example-page, the error on the server side can always be unminifed but the client side errors for some reason, can't be unminifed at all. Is this because I'm running on a dev mode?
Here's my next.config.js (the config of the actual app is similar to this one)
export default withSentryConfig(nextConfig, {
// For all available options, see:
// https://www.npmjs.com/package/@sentry/webpack-plugin#options
org: "xxx",
project: "yyy",
silent: !process.env.CI,
widenClientFileUpload: true,
reactComponentAnnotation: {
enabled: true,
},
tunnelRoute: "/monitoring",
disableLogger: false,
automaticVercelMonitors: true,
sourcemaps: {
disable: false,
}
});