diff options
| author | Dhravya Shah <[email protected]> | 2024-07-30 21:18:20 -0700 |
|---|---|---|
| committer | Dhravya Shah <[email protected]> | 2024-07-30 21:18:20 -0700 |
| commit | bd2163897a73d5ff60cb0546468ee91107d16af9 (patch) | |
| tree | b3c775f7b0c4c6c343680a25780b42dac3e359d0 /apps/web | |
| parent | disable sentry again. (diff) | |
| download | supermemory-bd2163897a73d5ff60cb0546468ee91107d16af9.tar.xz supermemory-bd2163897a73d5ff60cb0546468ee91107d16af9.zip | |
enable sentry using tree shaking
Diffstat (limited to 'apps/web')
| -rw-r--r-- | apps/web/next.config.mjs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index c0001fa5..9e0e6e98 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -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; |