mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
enable sentry using tree shaking
This commit is contained in:
parent
d6caa9ddc9
commit
bd2163897a
1 changed files with 14 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue