@vercel/next 4.15.30 → 4.15.31
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 +17 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12167,6 +12167,17 @@ 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
|
+
}
|
|
12170
12181
|
async function getPageLambdaGroups({
|
|
12171
12182
|
entryPath,
|
|
12172
12183
|
config,
|
|
@@ -12239,7 +12250,10 @@ async function getPageLambdaGroups({
|
|
|
12239
12250
|
}
|
|
12240
12251
|
}
|
|
12241
12252
|
let matchingGroup = experimentalAllowBundling ? void 0 : groups.find((group) => {
|
|
12242
|
-
const matches = group.maxDuration === opts.maxDuration && group.memory === opts.memory &&
|
|
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;
|
|
12243
12257
|
if (matches) {
|
|
12244
12258
|
let newTracedFilesUncompressedSize = group.pseudoLayerUncompressedBytes;
|
|
12245
12259
|
for (const newPage of newPages) {
|
|
@@ -15222,6 +15236,8 @@ ${JSON.stringify(
|
|
|
15222
15236
|
memory: group.memory,
|
|
15223
15237
|
runtime: nodeVersion.runtime,
|
|
15224
15238
|
maxDuration: group.maxDuration,
|
|
15239
|
+
regions: group.regions,
|
|
15240
|
+
functionFailoverRegions: group.functionFailoverRegions,
|
|
15225
15241
|
supportsCancellation: group.supportsCancellation,
|
|
15226
15242
|
isStreaming: group.isStreaming,
|
|
15227
15243
|
nextVersion,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.31",
|
|
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.
|
|
56
|
+
"@vercel/build-utils": "13.4.3",
|
|
57
57
|
"@vercel/routing-utils": "5.3.3"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|