Repository navigation
Conversation
…ternal option Next.js, Nitro, Nuxt and SvelteKit passed their own globs through the public `filesToDeleteAfterUpload`. They now pass them through the internal `sdkFilesToDeleteAfterUpload`. Next.js no longer passes its own `disable` value or writes `deleteSourcemapsAfterUpload` into the user's options. SDK messages no longer tell users to set these options.
…pile hook Only the `runAfterProductionCompile` hook uploads and deletes the source maps of a Turbopack build. Without the hook, the maps that the SDK turned on stayed in `.next/static`.
…hook is not set up With `useRunAfterProductionCompileHook`, the webpack plugins leave the upload and the deletion to the hook. On a Next.js version without the hook, the source maps that the SDK turned on stayed in `.next/static`.
Contributor
size-limit report 📦Compared: 77d062f (PR test merge using ref/sdk-source-map-glob-option at 364ee8c) Against: 71f41ed (ref/sdk-source-map-glob-option) · base run #68183
|
Contributor
Optional E2E testsAll optional checks were successful. 7 successful. See the run. Successful checks
|
timfish
marked this pull request as ready for review
November 26, 2026 15:24
javascript-sdk-gitflow
Bot
requested review from
chargome,
nicohrubec and
s1gr1d
November 26, 2026 15:25
timfish
force-pushed
the
ref/sdk-source-map-glob-option
branch
from
November 26, 2026 15:25
d766635 to
364ee8c
Compare
…into fix/nextjs-turbopack-source-maps-without-hook # Conflicts: # packages/nextjs/src/config/withSentryConfig/getFinalConfigObjectBundlerUtils.ts # packages/nextjs/test/config/sourceMapOptions.test.ts # packages/nextjs/test/config/webpack/constructWebpackConfig.test.ts # packages/nextjs/test/config/withSentryConfig.test.ts
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #26906.
With the
runAfterProductionCompilehook, only the hook uploads and deletes source maps. The SDK still turned source maps on when the hook was not set up, so they stayed in.next/static, where they are served publicly.productionBrowserSourceMaps: truewhenuseRunAfterProductionCompileHookisfalse, or whencompiler.runAfterProductionCompileis set to something that is not a function.useRunAfterProductionCompileHook: true: the SDK no longer changesdevtoolwhen the Next.js version is below 15.4.1, or whencompiler.runAfterProductionCompileis not a function.sourcemaps.delete: falsestill turns the maps on, because the user asked to keep them.