2022-05-02 14:33:09 +00:00
|
|
|
const { withSentryConfig } = require('@sentry/nextjs');
|
|
|
|
|
|
|
|
const moduleExports = {
|
2021-11-30 16:36:48 +00:00
|
|
|
reactStrictMode: true,
|
2022-04-02 11:08:11 +00:00
|
|
|
compiler: {
|
|
|
|
// ssr and displayName are configured by default
|
|
|
|
styledComponents: true,
|
|
|
|
},
|
|
|
|
};
|
2022-05-02 14:33:09 +00:00
|
|
|
|
|
|
|
const sentryWebpackPluginOptions = {
|
|
|
|
silent: true, // Suppresses all logs
|
|
|
|
};
|
|
|
|
|
|
|
|
// Make sure adding Sentry options is the last code to run before exporting, to
|
|
|
|
// ensure that your source maps include changes from all other Webpack plugins
|
|
|
|
module.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions);
|