Menu

1 / 2

Our Sentry config sets one option the SDK has deleted and two more under a key whose own type says it has no effect

DEV Community: nextjs·Daniel Pertu·about 17 hours ago
#EJ5H84wu
#devtonextjs#devto#dev#sentry#fullscreen
Reading 0:00
15s threshold

CogniPrep's next.config.mjs ends with this:

export default withSentryConfig ( configWithAnalyzer , { org : ' pertu-works ' , project : ' cogniprep ' , silent : ! process . env . CI ,

// OPTIMIZED: Reduced from true to false to decrease bundle size widenClientFileUpload : false ,

// Hide source maps from being sent to the client (reduces bundle size) hideSourceMaps : true ,

webpack : { automaticVercelMonitors : true , treeshake : { // Automatically tree-shake Sentry logger statements to reduce bundle size removeDebugLogging : true , }, }, });

Enter fullscreen mode

Exit fullscreen mode

Three comments, all of them about bundle size. next build on this project compiles with Turbopack, which is the default builder in Next 16. Here is what each line is worth.

The option that no longer exists

grep -rl "hideSourceMaps" node_modules/@sentry/ | wc -l # 0

Enter fullscreen mode

Exit fullscreen mode

Zero files. Not in the types, not in the compiled code, nowhere in any @sentry/* package at version 10.66.0.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.