@vercel/next 4.10.5 → 4.10.6
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 +77 -75
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14927,6 +14927,83 @@ ${JSON.stringify(
|
|
|
14927
14927
|
JSON.stringify(Array.from(experimentalStreamingLambdaPaths))
|
|
14928
14928
|
);
|
|
14929
14929
|
}
|
|
14930
|
+
const nodeMiddleware = await getNodeMiddleware({
|
|
14931
|
+
config,
|
|
14932
|
+
baseDir,
|
|
14933
|
+
projectDir,
|
|
14934
|
+
entryPath,
|
|
14935
|
+
nextVersion,
|
|
14936
|
+
nodeVersion: nodeVersion.runtime,
|
|
14937
|
+
lstatSema,
|
|
14938
|
+
lstatResults,
|
|
14939
|
+
pageExtensions: requiredServerFilesManifest.config.pageExtensions,
|
|
14940
|
+
routesManifest,
|
|
14941
|
+
outputDirectory,
|
|
14942
|
+
prerenderBypassToken: prerenderManifest.bypassToken,
|
|
14943
|
+
isCorrectMiddlewareOrder,
|
|
14944
|
+
functionsConfigManifest,
|
|
14945
|
+
requiredServerFilesManifest
|
|
14946
|
+
});
|
|
14947
|
+
const middleware = await getMiddlewareBundle({
|
|
14948
|
+
config,
|
|
14949
|
+
entryPath,
|
|
14950
|
+
outputDirectory,
|
|
14951
|
+
routesManifest,
|
|
14952
|
+
isCorrectMiddlewareOrder,
|
|
14953
|
+
prerenderBypassToken: prerenderManifest.bypassToken || "",
|
|
14954
|
+
nextVersion,
|
|
14955
|
+
appPathRoutesManifest: appPathRoutesManifest || {}
|
|
14956
|
+
});
|
|
14957
|
+
if (appPathRoutesManifest) {
|
|
14958
|
+
const edgeFunctions = middleware.edgeFunctions;
|
|
14959
|
+
for (const page of Object.values(appPathRoutesManifest)) {
|
|
14960
|
+
const pathname = import_path4.default.posix.join(
|
|
14961
|
+
"./",
|
|
14962
|
+
entryDirectory,
|
|
14963
|
+
page === "/" ? "/index" : page
|
|
14964
|
+
);
|
|
14965
|
+
if (lambdas[pathname]) {
|
|
14966
|
+
lambdas[`${pathname}.rsc`] = lambdas[pathname];
|
|
14967
|
+
if (isAppPPREnabled) {
|
|
14968
|
+
lambdas[`${pathname}${RSC_PREFETCH_SUFFIX}`] = lambdas[pathname];
|
|
14969
|
+
}
|
|
14970
|
+
}
|
|
14971
|
+
if (edgeFunctions[pathname]) {
|
|
14972
|
+
edgeFunctions[`${pathname}.rsc`] = edgeFunctions[pathname];
|
|
14973
|
+
if (isAppPPREnabled) {
|
|
14974
|
+
edgeFunctions[`${pathname}${RSC_PREFETCH_SUFFIX}`] = edgeFunctions[pathname];
|
|
14975
|
+
}
|
|
14976
|
+
}
|
|
14977
|
+
}
|
|
14978
|
+
for (const route of routesManifest.dynamicRoutes) {
|
|
14979
|
+
if (!("sourcePage" in route))
|
|
14980
|
+
continue;
|
|
14981
|
+
if (typeof route.sourcePage !== "string")
|
|
14982
|
+
continue;
|
|
14983
|
+
if (route.sourcePage === route.page)
|
|
14984
|
+
continue;
|
|
14985
|
+
const sourcePathname = import_path4.default.posix.join(
|
|
14986
|
+
"./",
|
|
14987
|
+
entryDirectory,
|
|
14988
|
+
route.sourcePage === "/" ? "/index" : route.sourcePage
|
|
14989
|
+
);
|
|
14990
|
+
const pathname = import_path4.default.posix.join(
|
|
14991
|
+
"./",
|
|
14992
|
+
entryDirectory,
|
|
14993
|
+
route.page === "/" ? "/index" : route.page
|
|
14994
|
+
);
|
|
14995
|
+
if (lambdas[sourcePathname]) {
|
|
14996
|
+
lambdas[`${pathname}`] = lambdas[sourcePathname];
|
|
14997
|
+
lambdas[`${pathname}.rsc`] = lambdas[sourcePathname];
|
|
14998
|
+
lambdas[`${pathname}${RSC_PREFETCH_SUFFIX}`] = lambdas[sourcePathname];
|
|
14999
|
+
}
|
|
15000
|
+
if (edgeFunctions[sourcePathname]) {
|
|
15001
|
+
edgeFunctions[`${pathname}`] = edgeFunctions[sourcePathname];
|
|
15002
|
+
edgeFunctions[`${pathname}.rsc`] = edgeFunctions[sourcePathname];
|
|
15003
|
+
edgeFunctions[`${pathname}${RSC_PREFETCH_SUFFIX}`] = edgeFunctions[sourcePathname];
|
|
15004
|
+
}
|
|
15005
|
+
}
|
|
15006
|
+
}
|
|
14930
15007
|
const prerenderRoute = onPrerenderRoute({
|
|
14931
15008
|
appDir,
|
|
14932
15009
|
pagesDir,
|
|
@@ -14990,33 +15067,6 @@ ${JSON.stringify(
|
|
|
14990
15067
|
true
|
|
14991
15068
|
)];
|
|
14992
15069
|
});
|
|
14993
|
-
const nodeMiddleware = await getNodeMiddleware({
|
|
14994
|
-
config,
|
|
14995
|
-
baseDir,
|
|
14996
|
-
projectDir,
|
|
14997
|
-
entryPath,
|
|
14998
|
-
nextVersion,
|
|
14999
|
-
nodeVersion: nodeVersion.runtime,
|
|
15000
|
-
lstatSema,
|
|
15001
|
-
lstatResults,
|
|
15002
|
-
pageExtensions: requiredServerFilesManifest.config.pageExtensions,
|
|
15003
|
-
routesManifest,
|
|
15004
|
-
outputDirectory,
|
|
15005
|
-
prerenderBypassToken: prerenderManifest.bypassToken,
|
|
15006
|
-
isCorrectMiddlewareOrder,
|
|
15007
|
-
functionsConfigManifest,
|
|
15008
|
-
requiredServerFilesManifest
|
|
15009
|
-
});
|
|
15010
|
-
const middleware = await getMiddlewareBundle({
|
|
15011
|
-
config,
|
|
15012
|
-
entryPath,
|
|
15013
|
-
outputDirectory,
|
|
15014
|
-
routesManifest,
|
|
15015
|
-
isCorrectMiddlewareOrder,
|
|
15016
|
-
prerenderBypassToken: prerenderManifest.bypassToken || "",
|
|
15017
|
-
nextVersion,
|
|
15018
|
-
appPathRoutesManifest: appPathRoutesManifest || {}
|
|
15019
|
-
});
|
|
15020
15070
|
const isNextDataServerResolving = (middleware.staticRoutes.length > 0 || nodeMiddleware) && import_semver3.default.gte(nextVersion, NEXT_DATA_MIDDLEWARE_RESOLVING_VERSION);
|
|
15021
15071
|
const staticSegmentRoutes = isAppClientSegmentCacheEnabled ? await getStaticSegmentRoutes({
|
|
15022
15072
|
entryDirectory,
|
|
@@ -15172,54 +15222,6 @@ ${JSON.stringify(
|
|
|
15172
15222
|
fsPath: catchallFsPath
|
|
15173
15223
|
});
|
|
15174
15224
|
}
|
|
15175
|
-
if (appPathRoutesManifest) {
|
|
15176
|
-
const edgeFunctions = middleware.edgeFunctions;
|
|
15177
|
-
for (const page of Object.values(appPathRoutesManifest)) {
|
|
15178
|
-
const pathname = import_path4.default.posix.join(
|
|
15179
|
-
"./",
|
|
15180
|
-
entryDirectory,
|
|
15181
|
-
page === "/" ? "/index" : page
|
|
15182
|
-
);
|
|
15183
|
-
if (lambdas[pathname]) {
|
|
15184
|
-
lambdas[`${pathname}.rsc`] = lambdas[pathname];
|
|
15185
|
-
if (isAppPPREnabled) {
|
|
15186
|
-
lambdas[`${pathname}${RSC_PREFETCH_SUFFIX}`] = lambdas[pathname];
|
|
15187
|
-
}
|
|
15188
|
-
}
|
|
15189
|
-
if (edgeFunctions[pathname]) {
|
|
15190
|
-
edgeFunctions[`${pathname}.rsc`] = edgeFunctions[pathname];
|
|
15191
|
-
if (isAppPPREnabled) {
|
|
15192
|
-
edgeFunctions[`${pathname}${RSC_PREFETCH_SUFFIX}`] = edgeFunctions[pathname];
|
|
15193
|
-
}
|
|
15194
|
-
}
|
|
15195
|
-
}
|
|
15196
|
-
for (const route of routesManifest.dynamicRoutes) {
|
|
15197
|
-
if (!("sourcePage" in route))
|
|
15198
|
-
continue;
|
|
15199
|
-
if (typeof route.sourcePage !== "string")
|
|
15200
|
-
continue;
|
|
15201
|
-
if (route.sourcePage === route.page)
|
|
15202
|
-
continue;
|
|
15203
|
-
const sourcePathname = import_path4.default.posix.join(
|
|
15204
|
-
"./",
|
|
15205
|
-
entryDirectory,
|
|
15206
|
-
route.sourcePage === "/" ? "/index" : route.sourcePage
|
|
15207
|
-
);
|
|
15208
|
-
const pathname = import_path4.default.posix.join(
|
|
15209
|
-
"./",
|
|
15210
|
-
entryDirectory,
|
|
15211
|
-
route.page === "/" ? "/index" : route.page
|
|
15212
|
-
);
|
|
15213
|
-
if (lambdas[sourcePathname]) {
|
|
15214
|
-
lambdas[`${pathname}.rsc`] = lambdas[sourcePathname];
|
|
15215
|
-
lambdas[`${pathname}${RSC_PREFETCH_SUFFIX}`] = lambdas[sourcePathname];
|
|
15216
|
-
}
|
|
15217
|
-
if (edgeFunctions[sourcePathname]) {
|
|
15218
|
-
edgeFunctions[`${pathname}.rsc`] = edgeFunctions[sourcePathname];
|
|
15219
|
-
edgeFunctions[`${pathname}${RSC_PREFETCH_SUFFIX}`] = edgeFunctions[sourcePathname];
|
|
15220
|
-
}
|
|
15221
|
-
}
|
|
15222
|
-
}
|
|
15223
15225
|
const prefetchSegmentHeader = routesManifest?.rsc?.prefetchSegmentHeader;
|
|
15224
15226
|
const prefetchSegmentDirSuffix = routesManifest?.rsc?.prefetchSegmentDirSuffix;
|
|
15225
15227
|
const prefetchSegmentSuffix = routesManifest?.rsc?.prefetchSegmentSuffix;
|