@vercel/next 4.20.4 → 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.
Files changed (2) hide show
  1. package/dist/index.js +5 -2
  2. package/package.json +3 -3
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
@@ -15438,6 +15438,7 @@ ${JSON.stringify(
15438
15438
  functionFailoverRegions: group.functionFailoverRegions,
15439
15439
  runtime: nodeVersion.runtime,
15440
15440
  maxDuration: group.maxDuration,
15441
+ maxConcurrency: group.maxConcurrency,
15441
15442
  supportsCancellation: group.supportsCancellation,
15442
15443
  isStreaming: group.isStreaming,
15443
15444
  nextVersion,
@@ -18035,6 +18036,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
18035
18036
  isApiLambda: !!routeIsApi,
18036
18037
  pseudoLayer: group.pseudoLayer,
18037
18038
  lambdaCombinedBytes: group.pseudoLayerBytes,
18039
+ maxConcurrency: group.maxConcurrency,
18038
18040
  lambdaIdentifier: import_path6.default.join(
18039
18041
  entryDirectory,
18040
18042
  `__NEXT_${routeIsApi ? "API" : "PAGE"}_LAMBDA_${lambdaGroupIndex}`
@@ -18369,6 +18371,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
18369
18371
  ),
18370
18372
  operationType,
18371
18373
  runtime: nodeVersion.runtime,
18374
+ maxConcurrency: group.maxConcurrency,
18372
18375
  nextVersion
18373
18376
  });
18374
18377
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.20.4",
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,8 +53,8 @@
53
53
  "text-table": "0.2.0",
54
54
  "vitest": "2.0.3",
55
55
  "webpack-sources": "3.2.3",
56
- "@vercel/routing-utils": "6.4.0",
57
- "@vercel/build-utils": "13.32.3"
56
+ "@vercel/build-utils": "13.36.3",
57
+ "@vercel/routing-utils": "6.4.0"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "node build.mjs",