@vercel/next 4.20.3 → 4.20.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +26 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12381,11 +12381,11 @@ async function getPageLambdaGroups({
|
|
|
12381
12381
|
const normalBudget = getMaxUncompressedLambdaSize(nodeVersion.runtime) - LAMBDA_RESERVED_UNCOMPRESSED_SIZE;
|
|
12382
12382
|
isLargeFunction = standaloneUncompressedSize >= normalBudget;
|
|
12383
12383
|
}
|
|
12384
|
-
const skipGroupBundling = experimentalAllowBundling || isLargeFunction;
|
|
12384
|
+
const skipGroupBundling = experimentalAllowBundling || isLargeFunction || opts.maxConcurrency !== void 0;
|
|
12385
12385
|
let matchingGroup = skipGroupBundling ? void 0 : groups.find((group) => {
|
|
12386
12386
|
const matches = (
|
|
12387
12387
|
// Never merge a normal route into a large (single-route) group.
|
|
12388
|
-
(group.isLargeFunctions ?? false) === isLargeFunction && group.maxDuration === opts.maxDuration && group.memory === opts.memory && compareRegions(group.regions, opts.regions) && compareRegions(
|
|
12388
|
+
(group.isLargeFunctions ?? false) === isLargeFunction && group.maxDuration === opts.maxDuration && group.maxConcurrency === opts.maxConcurrency && group.memory === opts.memory && compareRegions(group.regions, opts.regions) && compareRegions(
|
|
12389
12389
|
group.functionFailoverRegions,
|
|
12390
12390
|
opts.functionFailoverRegions
|
|
12391
12391
|
) && group.isPrerenders === isPrerenderRoute && group.isExperimentalPPR === isExperimentalPPR && JSON.stringify(group.experimentalTriggers) === JSON.stringify(opts.experimentalTriggers) && group.supportsCancellation === opts.supportsCancellation
|
|
@@ -13445,7 +13445,8 @@ async function getNodeMiddleware({
|
|
|
13445
13445
|
prerenderBypassToken,
|
|
13446
13446
|
isCorrectMiddlewareOrder,
|
|
13447
13447
|
functionsConfigManifest,
|
|
13448
|
-
requiredServerFilesManifest
|
|
13448
|
+
requiredServerFilesManifest,
|
|
13449
|
+
instrumentationHookBuildTrace
|
|
13449
13450
|
}) {
|
|
13450
13451
|
const middlewareFunctionConfig = functionsConfigManifest?.functions["/_middleware"];
|
|
13451
13452
|
if (!middlewareFunctionConfig || !middlewareFunctionConfig.matchers) {
|
|
@@ -13506,6 +13507,22 @@ async function getNodeMiddleware({
|
|
|
13506
13507
|
console.log("outside base dir", absolutePath);
|
|
13507
13508
|
}
|
|
13508
13509
|
});
|
|
13510
|
+
if (instrumentationHookBuildTrace) {
|
|
13511
|
+
instrumentationHookBuildTrace.files.map((file) => {
|
|
13512
|
+
fileList.push(
|
|
13513
|
+
import_path3.default.relative(
|
|
13514
|
+
baseDir,
|
|
13515
|
+
import_path3.default.join(entryPath, outputDirectory, "server", file)
|
|
13516
|
+
)
|
|
13517
|
+
);
|
|
13518
|
+
});
|
|
13519
|
+
fileList.push(
|
|
13520
|
+
import_path3.default.relative(
|
|
13521
|
+
baseDir,
|
|
13522
|
+
import_path3.default.join(entryPath, outputDirectory, "server", "instrumentation.js")
|
|
13523
|
+
)
|
|
13524
|
+
);
|
|
13525
|
+
}
|
|
13509
13526
|
const reasons = /* @__PURE__ */ new Map();
|
|
13510
13527
|
const tracedFiles = Object.fromEntries(
|
|
13511
13528
|
(await Promise.all(
|
|
@@ -14739,13 +14756,13 @@ async function serverBuild({
|
|
|
14739
14756
|
})
|
|
14740
14757
|
]);
|
|
14741
14758
|
const experimentalStreamingLambdaPaths = /* @__PURE__ */ new Map();
|
|
14759
|
+
let instrumentationHookBuildTrace;
|
|
14742
14760
|
if (hasLambdas) {
|
|
14743
14761
|
const initialTracingLabel = "Traced Next.js server files in";
|
|
14744
14762
|
console.time(initialTracingLabel);
|
|
14745
14763
|
let initialFileList;
|
|
14746
14764
|
let initialFileReasons;
|
|
14747
14765
|
let nextServerBuildTrace;
|
|
14748
|
-
let instrumentationHookBuildTrace;
|
|
14749
14766
|
const useBundledServer = import_semver4.default.gte(
|
|
14750
14767
|
nextVersion,
|
|
14751
14768
|
BUNDLED_SERVER_NEXT_VERSION
|
|
@@ -15421,6 +15438,7 @@ ${JSON.stringify(
|
|
|
15421
15438
|
functionFailoverRegions: group.functionFailoverRegions,
|
|
15422
15439
|
runtime: nodeVersion.runtime,
|
|
15423
15440
|
maxDuration: group.maxDuration,
|
|
15441
|
+
maxConcurrency: group.maxConcurrency,
|
|
15424
15442
|
supportsCancellation: group.supportsCancellation,
|
|
15425
15443
|
isStreaming: group.isStreaming,
|
|
15426
15444
|
nextVersion,
|
|
@@ -15522,7 +15540,8 @@ ${JSON.stringify(
|
|
|
15522
15540
|
prerenderBypassToken: prerenderManifest.bypassToken,
|
|
15523
15541
|
isCorrectMiddlewareOrder,
|
|
15524
15542
|
functionsConfigManifest,
|
|
15525
|
-
requiredServerFilesManifest
|
|
15543
|
+
requiredServerFilesManifest,
|
|
15544
|
+
instrumentationHookBuildTrace
|
|
15526
15545
|
});
|
|
15527
15546
|
const middleware = await getMiddlewareBundle({
|
|
15528
15547
|
config,
|
|
@@ -18017,6 +18036,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
18017
18036
|
isApiLambda: !!routeIsApi,
|
|
18018
18037
|
pseudoLayer: group.pseudoLayer,
|
|
18019
18038
|
lambdaCombinedBytes: group.pseudoLayerBytes,
|
|
18039
|
+
maxConcurrency: group.maxConcurrency,
|
|
18020
18040
|
lambdaIdentifier: import_path6.default.join(
|
|
18021
18041
|
entryDirectory,
|
|
18022
18042
|
`__NEXT_${routeIsApi ? "API" : "PAGE"}_LAMBDA_${lambdaGroupIndex}`
|
|
@@ -18351,6 +18371,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
18351
18371
|
),
|
|
18352
18372
|
operationType,
|
|
18353
18373
|
runtime: nodeVersion.runtime,
|
|
18374
|
+
maxConcurrency: group.maxConcurrency,
|
|
18354
18375
|
nextVersion
|
|
18355
18376
|
});
|
|
18356
18377
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"text-table": "0.2.0",
|
|
54
54
|
"vitest": "2.0.3",
|
|
55
55
|
"webpack-sources": "3.2.3",
|
|
56
|
-
"@vercel/build-utils": "13.
|
|
56
|
+
"@vercel/build-utils": "13.36.3",
|
|
57
57
|
"@vercel/routing-utils": "6.4.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|