Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(nextjs): Use afterProductionBuild to upload sourcemaps and do release management #15779

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

lforst
Copy link
Member

@lforst lforst commented Mar 21, 2025

Ref vercel/next.js#77345

Next.js is adding an afterProductionBuild hook that we can use to upload sourcemaps and do release management with.

Unfortunately because we need to support older Next.js versions we still need to maintain our Webpack logic so for now I opted to run the afterProductionBuild logic only if we never ran our webpack logic. That way we should never do duplicate work.

Copy link
Contributor

github-actions bot commented Apr 2, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.2 KB - -
@sentry/browser - with treeshaking flags 23.02 KB - -
@sentry/browser (incl. Tracing) 36.83 KB - -
@sentry/browser (incl. Tracing, Replay) 73.99 KB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.39 KB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 78.66 KB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 91.22 KB - -
@sentry/browser (incl. Feedback) 40.33 KB - -
@sentry/browser (incl. sendFeedback) 27.83 KB - -
@sentry/browser (incl. FeedbackAsync) 32.63 KB - -
@sentry/react 25 KB - -
@sentry/react (incl. Tracing) 38.75 KB - -
@sentry/vue 27.41 KB - -
@sentry/vue (incl. Tracing) 38.55 KB - -
@sentry/svelte 23.23 KB - -
CDN Bundle 24.44 KB - -
CDN Bundle (incl. Tracing) 36.85 KB - -
CDN Bundle (incl. Tracing, Replay) 71.87 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 77.07 KB - -
CDN Bundle - uncompressed 71.24 KB - -
CDN Bundle (incl. Tracing) - uncompressed 108.94 KB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 220.23 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 232.8 KB - -
@sentry/nextjs (client) 40.06 KB +0.01% +1 B 🔺
@sentry/sveltekit (client) 37.26 KB - -
@sentry/node 142.88 KB -0.01% -1 B 🔽
@sentry/node - without tracing 96.08 KB - -
@sentry/aws-serverless 120.43 KB +0.01% +3 B 🔺

View base workflow run

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.

1 participant