enable sentry using tree shaking

This commit is contained in:
Dhravya Shah 2024-07-30 21:18:20 -07:00
parent d6caa9ddc9
commit bd2163897a

View file

@ -9,6 +9,20 @@ const baseNextConfig = {
env: {
TELEGRAM_BOT_TOKEN: process.env.TELEGRAM_BOT_TOKEN,
},
webpack: (config, { webpack }) => {
config.plugins.push(
new webpack.DefinePlugin({
__SENTRY_DEBUG__: false,
__SENTRY_TRACING__: false,
__RRWEB_EXCLUDE_IFRAME__: true,
__RRWEB_EXCLUDE_SHADOW_DOM__: true,
__SENTRY_EXCLUDE_REPLAY_WORKER__: true,
}),
);
// return the modified config
return config;
},
};
let selectedCofig = baseNextConfig;