• 1000
Также моя конфигурация next.config. js выглядит так.
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
const withSourceMaps = require('@zeit/next-source-maps')();
webpack: (config, { dev, isServer, buildId }) => {
if (!isServer) {
config.resolve.alias['@sentry/node'] = '@sentry/browser';
}
if (process.env.NODE_ENV === 'production') {
config.plugins.push(
new SentryWebpackPlugin({
include: './app/.next',
ignore: ['node_modules'],
urlPrefix: '~/_next',
release: buildId,
}),
);
}
return config;}