Skip to content

Conversation

@logaretm
Copy link
Collaborator

@logaretm logaretm commented Dec 2, 2025

We are moving the only-webpack related configurations under webpack namespace to better fit our goal of communicating the SDK readiness for Turbopack by default.

This involved moving several options to be nested under a webpack path in the build configuration.

This is meant to be released once this getsentry/sentry-javascript#18343 goes live, so I will keep this open until then. Will keep it in draft as well.

The SDK PR adds warnings for those deprecated options and warns users about using them if detected so I don't think we need to do that here once it goes live.

@vercel
Copy link

vercel bot commented Dec 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sentry-docs Ready Ready Preview Comment Dec 11, 2025 11:04am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
develop-docs Ignored Ignored Preview Dec 11, 2025 11:04am

@codecov
Copy link

codecov bot commented Dec 2, 2025

Bundle Report

Changes will decrease total bundle size by 396.13kB (-1.12%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 24.27MB -396.22kB (-1.61%) ⬇️
sentry-docs-edge-server-array-push 369.08kB 96 bytes (0.03%) ⬆️
sentry-docs-client-array-push 10.23MB -6 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 5.46MB -0.0%
6529.js -3 bytes 4.88MB -0.0%
../instrumentation.js -3 bytes 4.78MB -0.0%
../app/[[...path]]/page.js.nft.json -132.07kB 925.02kB -12.49%
../app/platform-redirect/page.js.nft.json -132.07kB 924.94kB -12.49%
../app/sitemap.xml/route.js.nft.json -132.07kB 922.46kB -12.52%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 893.1kB -0.0%
static/chunks/9366-*.js -3 bytes 437.05kB -0.0%
static/wFM8t3zcGEkrjTcIsLdzH/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/wFM8t3zcGEkrjTcIsLdzH/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/hb9jLzRauhngPzK5-*.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
static/hb9jLzRauhngPzK5-*.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
view changes for bundle: sentry-docs-edge-server-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
src/middleware.js 96 bytes 213.74kB 0.04%

Copy link
Collaborator

@inventarSarah inventarSarah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍looks good to me

have no effect. The Sentry SDK will no longer apply build-time instrumentation
and will rely purely on Next.js telemetry features.
</Alert>

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove the alert about Turbopack in the lines above. wdyt?

This one:

<Alert level="info">
  If you're building your Next.js application with Turbopack, this option will
  have no effect. The Sentry SDK will no longer apply build-time instrumentation
  and will rely purely on Next.js telemetry features.
</Alert>

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, absolutely 💯

@logaretm logaretm force-pushed the awad/deprecate-webpack-toplevel-options-docs branch from f94a4f6 to 9074117 Compare December 10, 2025 09:58
@logaretm logaretm marked this pull request as ready for review December 10, 2025 16:11
Copilot AI review requested due to automatic review settings December 10, 2025 16:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reorganizes the Next.js SDK build configuration documentation by moving webpack-specific options under a webpack namespace. This improves clarity about which options are relevant for Turbopack builds versus Webpack builds.

  • Moves webpack-specific configuration options (autoInstrumentServerFunctions, autoInstrumentMiddleware, autoInstrumentAppDirectory, excludeServerRoutes, automaticVercelMonitors, unstable_sentryWebpackPluginOptions, and reactComponentAnnotation) under a new "Next.js Webpack Options" section
  • Adds a clear alert indicating these options only take effect when using Webpack
  • Reorganizes the documentation structure to distinguish between general options and webpack-specific options

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@logaretm logaretm merged commit 8b75a33 into master Dec 11, 2025
14 checks passed
@logaretm logaretm deleted the awad/deprecate-webpack-toplevel-options-docs branch December 11, 2025 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants