@vercel/next 4.10.0 → 4.10.2
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 +29 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -11503,7 +11503,6 @@ async function createLambdaFromPseudoLayers({
|
|
|
11503
11503
|
isStreaming,
|
|
11504
11504
|
nextVersion,
|
|
11505
11505
|
experimentalAllowBundling,
|
|
11506
|
-
regions,
|
|
11507
11506
|
...lambdaOptions
|
|
11508
11507
|
}) {
|
|
11509
11508
|
await createLambdaSema.acquire();
|
|
@@ -11541,8 +11540,7 @@ async function createLambdaFromPseudoLayers({
|
|
|
11541
11540
|
slug: "nextjs",
|
|
11542
11541
|
version: nextVersion
|
|
11543
11542
|
},
|
|
11544
|
-
experimentalAllowBundling
|
|
11545
|
-
regions
|
|
11543
|
+
experimentalAllowBundling
|
|
11546
11544
|
});
|
|
11547
11545
|
}
|
|
11548
11546
|
async function getExportIntent(entryPath) {
|
|
@@ -14838,7 +14836,6 @@ ${JSON.stringify(
|
|
|
14838
14836
|
memory: group.memory,
|
|
14839
14837
|
runtime: nodeVersion.runtime,
|
|
14840
14838
|
maxDuration: group.maxDuration,
|
|
14841
|
-
regions: group.regions,
|
|
14842
14839
|
isStreaming: group.isStreaming,
|
|
14843
14840
|
nextVersion,
|
|
14844
14841
|
experimentalAllowBundling,
|
|
@@ -15171,11 +15168,11 @@ ${JSON.stringify(
|
|
|
15171
15168
|
}
|
|
15172
15169
|
if (appPathRoutesManifest) {
|
|
15173
15170
|
const edgeFunctions = middleware.edgeFunctions;
|
|
15174
|
-
for (const
|
|
15171
|
+
for (const page of Object.values(appPathRoutesManifest)) {
|
|
15175
15172
|
const pathname = import_path4.default.posix.join(
|
|
15176
15173
|
"./",
|
|
15177
15174
|
entryDirectory,
|
|
15178
|
-
|
|
15175
|
+
page === "/" ? "/index" : page
|
|
15179
15176
|
);
|
|
15180
15177
|
if (lambdas[pathname]) {
|
|
15181
15178
|
lambdas[`${pathname}.rsc`] = lambdas[pathname];
|
|
@@ -15190,6 +15187,32 @@ ${JSON.stringify(
|
|
|
15190
15187
|
}
|
|
15191
15188
|
}
|
|
15192
15189
|
}
|
|
15190
|
+
for (const route of routesManifest.dynamicRoutes) {
|
|
15191
|
+
if (!("sourcePage" in route))
|
|
15192
|
+
continue;
|
|
15193
|
+
if (typeof route.sourcePage !== "string")
|
|
15194
|
+
continue;
|
|
15195
|
+
if (route.sourcePage === route.page)
|
|
15196
|
+
continue;
|
|
15197
|
+
const sourcePathname = import_path4.default.posix.join(
|
|
15198
|
+
"./",
|
|
15199
|
+
entryDirectory,
|
|
15200
|
+
route.sourcePage === "/" ? "/index" : route.sourcePage
|
|
15201
|
+
);
|
|
15202
|
+
const pathname = import_path4.default.posix.join(
|
|
15203
|
+
"./",
|
|
15204
|
+
entryDirectory,
|
|
15205
|
+
route.page === "/" ? "/index" : route.page
|
|
15206
|
+
);
|
|
15207
|
+
if (lambdas[sourcePathname]) {
|
|
15208
|
+
lambdas[`${pathname}.rsc`] = lambdas[sourcePathname];
|
|
15209
|
+
lambdas[`${pathname}${RSC_PREFETCH_SUFFIX}`] = lambdas[sourcePathname];
|
|
15210
|
+
}
|
|
15211
|
+
if (edgeFunctions[sourcePathname]) {
|
|
15212
|
+
edgeFunctions[`${pathname}.rsc`] = edgeFunctions[sourcePathname];
|
|
15213
|
+
edgeFunctions[`${pathname}${RSC_PREFETCH_SUFFIX}`] = edgeFunctions[sourcePathname];
|
|
15214
|
+
}
|
|
15215
|
+
}
|
|
15193
15216
|
}
|
|
15194
15217
|
const prefetchSegmentHeader = routesManifest?.rsc?.prefetchSegmentHeader;
|
|
15195
15218
|
const prefetchSegmentDirSuffix = routesManifest?.rsc?.prefetchSegmentDirSuffix;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"@types/semver": "6.0.0",
|
|
31
31
|
"@types/text-table": "0.2.1",
|
|
32
32
|
"@types/webpack-sources": "3.2.0",
|
|
33
|
-
"@vercel/build-utils": "10.6.
|
|
34
|
-
"@vercel/routing-utils": "5.1.
|
|
33
|
+
"@vercel/build-utils": "10.6.7",
|
|
34
|
+
"@vercel/routing-utils": "5.1.1",
|
|
35
35
|
"async-sema": "3.0.1",
|
|
36
36
|
"buffer-crc32": "0.2.13",
|
|
37
37
|
"bytes": "3.1.2",
|