File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ export function register() {
4
4
if ( process . env . NEXT_RUNTIME === "nodejs" ) {
5
5
Sentry . init ( {
6
6
dsn : process . env . NEXT_PUBLIC_SENTRY_DSN ,
7
- // reduce sample rate to 10% on production
8
- tracesSampleRate : process . env . NODE_ENV !== "production" ? 1.0 : 0.1 ,
9
7
} ) ;
10
8
}
11
9
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ export function register() {
4
4
if ( process . env . NEXT_RUNTIME === "nodejs" ) {
5
5
Sentry . init ( {
6
6
dsn : process . env . NEXT_PUBLIC_SENTRY_DSN ,
7
- // reduce sample rate to 10% on production
8
- tracesSampleRate : process . env . NODE_ENV !== "production" ? 1.0 : 0.1 ,
9
7
} ) ;
10
8
}
11
9
Original file line number Diff line number Diff line change @@ -221,6 +221,13 @@ const nextConfig = {
221
221
) ;
222
222
}
223
223
224
+ config . plugins . push (
225
+ new webpack . DefinePlugin ( {
226
+ __SENTRY_DEBUG__ : false ,
227
+ __SENTRY_TRACING__ : false ,
228
+ } )
229
+ ) ;
230
+
224
231
config . plugins . push (
225
232
new CopyWebpackPlugin ( {
226
233
patterns : [
You can’t perform that action at this time.
0 commit comments