@@ -74,7 +74,7 @@ function getStaticChunksAppPattern({ useDirectoryPath = false }: { useDirectoryP
7474/**
7575 * Creates file patterns for source map uploads based on build tool and options
7676 */
77- function createSourcemapUploadAssets (
77+ function createSourcemapUploadAssetPatterns (
7878 normalizedDistPath : string ,
7979 buildTool : BuildTool ,
8080 widenClientFileUpload : boolean = false ,
@@ -85,6 +85,8 @@ function createSourcemapUploadAssets(
8585 assets . push ( path . posix . join ( normalizedDistPath , getServerPattern ( { useDirectoryPath : true } ) ) ) ;
8686
8787 if ( buildTool === 'after-production-compile-turbopack' ) {
88+ // In turbopack we always want to upload the full static chunks directory
89+ // as the build output is not split into pages|app chunks
8890 assets . push ( path . posix . join ( normalizedDistPath , getStaticChunksPattern ( { useDirectoryPath : true } ) ) ) ;
8991 } else {
9092 // Webpack client builds in after-production-compile mode
@@ -245,7 +247,11 @@ export function getBuildPluginOptions({
245247 const widenClientFileUpload = sentryBuildOptions . widenClientFileUpload ?? false ;
246248 const deleteSourcemapsAfterUpload = sentryBuildOptions . sourcemaps ?. deleteSourcemapsAfterUpload ?? false ;
247249
248- const sourcemapUploadAssets = createSourcemapUploadAssets ( normalizedDistDirAbsPath , buildTool , widenClientFileUpload ) ;
250+ const sourcemapUploadAssets = createSourcemapUploadAssetPatterns (
251+ normalizedDistDirAbsPath ,
252+ buildTool ,
253+ widenClientFileUpload ,
254+ ) ;
249255
250256 const sourcemapUploadIgnore = createSourcemapUploadIgnore ( normalizedDistDirAbsPath , widenClientFileUpload ) ;
251257
0 commit comments