@vercel/next 4.15.31 → 4.15.32

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 +1 -17
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -12167,17 +12167,6 @@ function addLocaleOrDefault(pathname, routesManifest, locale) {
12167
12167
  locale = routesManifest.i18n.defaultLocale;
12168
12168
  return locale ? `/${locale}${pathname === "/index" ? "" : pathname}` : pathname;
12169
12169
  }
12170
- function regionsArrayEqual(a, b) {
12171
- if (a === b)
12172
- return true;
12173
- if (!a || !b)
12174
- return false;
12175
- if (a.length !== b.length)
12176
- return false;
12177
- const sortedA = [...a].sort();
12178
- const sortedB = [...b].sort();
12179
- return sortedA.every((val, i) => val === sortedB[i]);
12180
- }
12181
12170
  async function getPageLambdaGroups({
12182
12171
  entryPath,
12183
12172
  config,
@@ -12250,10 +12239,7 @@ async function getPageLambdaGroups({
12250
12239
  }
12251
12240
  }
12252
12241
  let matchingGroup = experimentalAllowBundling ? void 0 : groups.find((group) => {
12253
- const matches = group.maxDuration === opts.maxDuration && group.memory === opts.memory && regionsArrayEqual(group.regions, opts.regions) && regionsArrayEqual(
12254
- group.functionFailoverRegions,
12255
- opts.functionFailoverRegions
12256
- ) && group.isPrerenders === isPrerenderRoute && group.isExperimentalPPR === isExperimentalPPR && JSON.stringify(group.experimentalTriggers) === JSON.stringify(opts.experimentalTriggers) && group.supportsCancellation === opts.supportsCancellation;
12242
+ const matches = group.maxDuration === opts.maxDuration && group.memory === opts.memory && group.isPrerenders === isPrerenderRoute && group.isExperimentalPPR === isExperimentalPPR && JSON.stringify(group.experimentalTriggers) === JSON.stringify(opts.experimentalTriggers) && group.supportsCancellation === opts.supportsCancellation;
12257
12243
  if (matches) {
12258
12244
  let newTracedFilesUncompressedSize = group.pseudoLayerUncompressedBytes;
12259
12245
  for (const newPage of newPages) {
@@ -15236,8 +15222,6 @@ ${JSON.stringify(
15236
15222
  memory: group.memory,
15237
15223
  runtime: nodeVersion.runtime,
15238
15224
  maxDuration: group.maxDuration,
15239
- regions: group.regions,
15240
- functionFailoverRegions: group.functionFailoverRegions,
15241
15225
  supportsCancellation: group.supportsCancellation,
15242
15226
  isStreaming: group.isStreaming,
15243
15227
  nextVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.15.31",
3
+ "version": "4.15.32",
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
  "test-listen": "1.1.0",
54
54
  "text-table": "0.2.0",
55
55
  "webpack-sources": "3.2.3",
56
- "@vercel/build-utils": "13.4.3",
56
+ "@vercel/build-utils": "13.5.0",
57
57
  "@vercel/routing-utils": "5.3.3"
58
58
  },
59
59
  "scripts": {