@vercel/next 4.15.31 → 4.15.33
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 +8 -11
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12167,16 +12167,16 @@ function addLocaleOrDefault(pathname, routesManifest, locale) {
|
|
|
12167
12167
|
locale = routesManifest.i18n.defaultLocale;
|
|
12168
12168
|
return locale ? `/${locale}${pathname === "/index" ? "" : pathname}` : pathname;
|
|
12169
12169
|
}
|
|
12170
|
-
function
|
|
12171
|
-
if (a === b)
|
|
12170
|
+
function compareRegions(a, b) {
|
|
12171
|
+
if (a === void 0 && b === void 0)
|
|
12172
12172
|
return true;
|
|
12173
|
-
if (
|
|
12173
|
+
if (a === void 0 || b === void 0)
|
|
12174
12174
|
return false;
|
|
12175
12175
|
if (a.length !== b.length)
|
|
12176
12176
|
return false;
|
|
12177
12177
|
const sortedA = [...a].sort();
|
|
12178
12178
|
const sortedB = [...b].sort();
|
|
12179
|
-
return sortedA.every((val,
|
|
12179
|
+
return sortedA.every((val, idx) => val === sortedB[idx]);
|
|
12180
12180
|
}
|
|
12181
12181
|
async function getPageLambdaGroups({
|
|
12182
12182
|
entryPath,
|
|
@@ -12205,7 +12205,8 @@ async function getPageLambdaGroups({
|
|
|
12205
12205
|
const isExperimentalPPR = experimentalPPRRoutes?.has(routeName) ?? false;
|
|
12206
12206
|
let opts = {};
|
|
12207
12207
|
if (functionsConfigManifest && functionsConfigManifest.functions[routeName]) {
|
|
12208
|
-
|
|
12208
|
+
const { regions: _regions, ...manifestOpts } = functionsConfigManifest.functions[routeName];
|
|
12209
|
+
opts = manifestOpts;
|
|
12209
12210
|
}
|
|
12210
12211
|
if (config && config.functions) {
|
|
12211
12212
|
const sourceFile = await getSourceFilePathFromPage({
|
|
@@ -12250,10 +12251,7 @@ async function getPageLambdaGroups({
|
|
|
12250
12251
|
}
|
|
12251
12252
|
}
|
|
12252
12253
|
let matchingGroup = experimentalAllowBundling ? void 0 : groups.find((group) => {
|
|
12253
|
-
const matches = group.maxDuration === opts.maxDuration && group.memory === opts.memory &&
|
|
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;
|
|
12254
|
+
const matches = group.maxDuration === opts.maxDuration && group.memory === opts.memory && compareRegions(group.regions, opts.regions) && group.isPrerenders === isPrerenderRoute && group.isExperimentalPPR === isExperimentalPPR && JSON.stringify(group.experimentalTriggers) === JSON.stringify(opts.experimentalTriggers) && group.supportsCancellation === opts.supportsCancellation;
|
|
12257
12255
|
if (matches) {
|
|
12258
12256
|
let newTracedFilesUncompressedSize = group.pseudoLayerUncompressedBytes;
|
|
12259
12257
|
for (const newPage of newPages) {
|
|
@@ -15234,10 +15232,9 @@ ${JSON.stringify(
|
|
|
15234
15232
|
),
|
|
15235
15233
|
operationType,
|
|
15236
15234
|
memory: group.memory,
|
|
15235
|
+
regions: group.regions,
|
|
15237
15236
|
runtime: nodeVersion.runtime,
|
|
15238
15237
|
maxDuration: group.maxDuration,
|
|
15239
|
-
regions: group.regions,
|
|
15240
|
-
functionFailoverRegions: group.functionFailoverRegions,
|
|
15241
15238
|
supportsCancellation: group.supportsCancellation,
|
|
15242
15239
|
isStreaming: group.isStreaming,
|
|
15243
15240
|
nextVersion,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.33",
|
|
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.
|
|
56
|
+
"@vercel/build-utils": "13.5.0",
|
|
57
57
|
"@vercel/routing-utils": "5.3.3"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|