Title: Slow build-times and Webpack serialization performance warnings when using `@sentry/nextjs` · Issue #15100 · getsentry/sentry-javascript · GitHub
Open Graph Title: Slow build-times and Webpack serialization performance warnings when using `@sentry/nextjs` · Issue #15100 · getsentry/sentry-javascript
X Title: Slow build-times and Webpack serialization performance warnings when using `@sentry/nextjs` · Issue #15100 · getsentry/sentry-javascript
Description: ⚠️ Edit by @lforst: This issue is confirmed. Please see #15100 (comment) for more information on why builds are slow when adding the Sentry SDK, and for temporary workarounds until performance issues are fixed within the SDK. Is there an...
Open Graph Description: ⚠️ Edit by @lforst: This issue is confirmed. Please see #15100 (comment) for more information on why builds are slow when adding the Sentry SDK, and for temporary workarounds until performance issu...
X Description: ⚠️ Edit by @lforst: This issue is confirmed. Please see #15100 (comment) for more information on why builds are slow when adding the Sentry SDK, and for temporary workarounds until performance issu...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/15100
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Slow build-times and Webpack serialization performance warnings when using `@sentry/nextjs`","articleBody":"> ⚠️ Edit by @lforst: This issue is confirmed. Please see [https://github.com/getsentry/sentry-javascript/issues/15100#issuecomment-2732790153](https://github.com/getsentry/sentry-javascript/issues/15100#issuecomment-2732790153) for more information on why builds are slow when adding the Sentry SDK, and for temporary workarounds until performance issues are fixed within the SDK.\n\n### Is there an existing issue for this?\n\n- [X] I have checked for existing issues [https://github.com/getsentry/sentry-javascript/issues](https://github.com/getsentry/sentry-javascript/issues)\n- [X] I have reviewed the documentation [https://docs.sentry.io/](https://docs.sentry.io/)\n- [X] I am using the latest SDK release [https://github.com/getsentry/sentry-javascript/releases](https://github.com/getsentry/sentry-javascript/releases)\n\n### How do you use Sentry?\n\nSentry Saas ([sentry.io](http://sentry.io))\n\n### Which SDK are you using?\n\n@sentry/nestjs\n\n### SDK Version\n\n8.50.0\n\n### Framework Version\n\nReact 19.0.0, Next 15.1.4, Node 22.9.0\n\n### Link to Sentry event\n\n*No response*\n\n### Reproduction Example/SDK Setup\n\n### Description\n\nWhen adding Sentry configuration to `next.config.ts` using `withSentryConfig`, I encounter the following warning during the build process:\n\n```\n\u003cw> [webpack.cache.PackFileCacheStrategy] Serializing big strings (318kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)\n```\n\nIs this a known issue? Are there any recommendations for addressing this warning, such as additional configuration options or workarounds?\n\nThank you!\n\n### Steps to Reproduce\n\n1. Start with a minimal `next.config.ts` file:\n\n ```typescript\n import type { NextConfig } from \"next\";\n \n const nextConfig: NextConfig = {};\n \n export default nextConfig;\n ```\n2. Update the file to include Sentry's configuration using `withSentryConfig`:\n\n ```typescript\n import type { NextConfig } from \"next\";\n \n import { withSentryConfig } from \"@sentry/nextjs\";\n \n const nextConfig: NextConfig = {};\n \n export default withSentryConfig(nextConfig, {\n automaticVercelMonitors: true,\n disableLogger: true,\n hideSourceMaps: true,\n org: \"MyOrg\",\n project: \"javascript-nextjs\",\n reactComponentAnnotation: {\n enabled: true,\n },\n silent: !process.env.CI,\n sourcemaps: {\n deleteSourcemapsAfterUpload: true,\n disable: process.env.NODE_ENV === \"development\",\n },\n tunnelRoute: \"/monitoring\",\n widenClientFileUpload: true,\n });\n ```\n3. Run the build process.\n\n### Expected Result\n\nThe build completes without warnings or errors.\n\n### Actual Result\n\nThe following warning appears during the build process:\n\n```\n\u003cw> [webpack.cache.PackFileCacheStrategy] Serializing big strings (318kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)\n```","author":{"url":"https://github.com/scobbe","@type":"Person","name":"scobbe"},"datePublished":"2025-01-20T22:25:14Z","url":"https://github.com/getsentry/sentry-javascript/issues/15100"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:91cf95b1-8dc3-22c6-2f65-c58510fc62d1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81BE:52410:19DCF00:20E9279:6B03C89C |
| html-safe-nonce | cb8bb65e61e289190960ca3dbde0afeac237824484a0d4e22999f178b16d86ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUJFOjUyNDEwOjE5RENGMDA6MjBFOTI3OTo2QjAzQzg5QyIsInZpc2l0b3JfaWQiOiI4NTM5Njg4NDc0NzUyOTY0MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 39c9158180e04e2c1588e8c5689fad9df23a21d744e5a992a8c00913521c0ea7 |
| hovercard-subject-tag | issue:2800353671 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/15100/issue_layout |
| twitter:image | https://opengraph.githubassets.com/58bd0148a6d9c184f2b65703f43c47a85ad40251a38f2e6c236cb0e193bc1009/getsentry/sentry-javascript/issues/15100 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/58bd0148a6d9c184f2b65703f43c47a85ad40251a38f2e6c236cb0e193bc1009/getsentry/sentry-javascript/issues/15100 |
| og:image:alt | ⚠️ Edit by @lforst: This issue is confirmed. Please see #15100 (comment) for more information on why builds are slow when adding the Sentry SDK, and for temporary workarounds until performance issu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | scobbe |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width