Skip to content

Commit cfdf388

Browse files
committed
add client check
1 parent 8199f16 commit cfdf388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/config/getBuildPluginOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function createSourcemapUploadAssetPatterns(
106106
path.posix.join(normalizedDistPath, getServerPattern({ useDirectoryPath: false })),
107107
path.posix.join(normalizedDistPath, FILE_PATTERNS.SERVERLESS),
108108
);
109-
} else {
109+
} else if (buildTool === 'webpack-client') {
110110
// Client builds
111111
if (widenClientFileUpload) {
112112
assets.push(path.posix.join(normalizedDistPath, getStaticChunksPattern({ useDirectoryPath: false })));

0 commit comments

Comments
 (0)