chore: Attempt reduction of Sentry size by treeshaking tracing (#15527)
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
1 parent
08f4a48774
commit
3174b55e21
3 files changed
+7
-4
No files matched your search
@@ -4,8 +4,6 @@ export function register() {
|
||||
if (process.env.NEXT_RUNTIME === "nodejs") {
|
||||
Sentry.init({
|
||||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
||||
// reduce sample rate to 10% on production
|
||||
tracesSampleRate: process.env.NODE_ENV !== "production" ? 1.0 : 0.1,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@ export function register() {
|
||||
if (process.env.NEXT_RUNTIME === "nodejs") {
|
||||
Sentry.init({
|
||||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
||||
// reduce sample rate to 10% on production
|
||||
tracesSampleRate: process.env.NODE_ENV !== "production" ? 1.0 : 0.1,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -221,6 +221,13 @@ const nextConfig = {
|
||||
);
|
||||
}
|
||||
|
||||
config.plugins.push(
|
||||
new webpack.DefinePlugin({
|
||||
__SENTRY_DEBUG__: false,
|
||||
__SENTRY_TRACING__: false,
|
||||
})
|
||||
);
|
||||
|
||||
config.plugins.push(
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
|
||||
Reference in new issue
Block a user