@vercel/next 4.2.16 → 4.2.18
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 +11 -5
- package/dist/server-launcher.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -12971,7 +12971,8 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
|
|
12971
12971
|
routesManifest,
|
12972
12972
|
isCorrectNotFoundRoutes,
|
12973
12973
|
isEmptyAllowQueryForPrendered,
|
12974
|
-
isAppPPREnabled
|
12974
|
+
isAppPPREnabled,
|
12975
|
+
hasActionOutputSupport
|
12975
12976
|
} = prerenderRouteArgs;
|
12976
12977
|
if (isBlocking && isFallback) {
|
12977
12978
|
throw new import_build_utils.NowBuildError({
|
@@ -13299,6 +13300,12 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
|
|
13299
13300
|
}
|
13300
13301
|
} : {}
|
13301
13302
|
});
|
13303
|
+
if (hasActionOutputSupport) {
|
13304
|
+
const actionOutputKey = `${import_path2.default.join("./", srcRoute || "")}.action`;
|
13305
|
+
if (srcRoute !== routeKey && lambdas[actionOutputKey]) {
|
13306
|
+
lambdas[`${routeKey}.action`] = lambdas[actionOutputKey];
|
13307
|
+
}
|
13308
|
+
}
|
13302
13309
|
const normalizePathData = (pathData) => {
|
13303
13310
|
if ((srcRoute === "/" || srcRoute == "/index") && pathData.endsWith(RSC_PREFETCH_SUFFIX)) {
|
13304
13311
|
delete lambdas[pathData];
|
@@ -14992,9 +14999,7 @@ async function serverBuild({
|
|
14992
14999
|
});
|
14993
15000
|
const appRouterStreamingActionLambdaGroups = [];
|
14994
15001
|
for (const group of appRouterLambdaGroups) {
|
14995
|
-
|
14996
|
-
group.isStreaming = true;
|
14997
|
-
}
|
15002
|
+
group.isStreaming = true;
|
14998
15003
|
group.isAppRouter = true;
|
14999
15004
|
if (hasActionOutputSupport) {
|
15000
15005
|
appRouterStreamingActionLambdaGroups.push({
|
@@ -15306,7 +15311,8 @@ async function serverBuild({
|
|
15306
15311
|
hasPages404: routesManifest.pages404,
|
15307
15312
|
isCorrectNotFoundRoutes,
|
15308
15313
|
isEmptyAllowQueryForPrendered,
|
15309
|
-
isAppPPREnabled
|
15314
|
+
isAppPPREnabled,
|
15315
|
+
hasActionOutputSupport
|
15310
15316
|
});
|
15311
15317
|
await Promise.all(
|
15312
15318
|
Object.keys(prerenderManifest.staticRoutes).map(
|
package/dist/server-launcher.js
CHANGED
@@ -33,3 +33,6 @@ module.exports = serve(nextServer.getRequestHandler());
|
|
33
33
|
if (conf.experimental?.ppr && "getRequestHandlerWithMetadata" in nextServer && typeof nextServer.getRequestHandlerWithMetadata === "function") {
|
34
34
|
module.exports.getRequestHandlerWithMetadata = (metadata) => serve(nextServer.getRequestHandlerWithMetadata(metadata));
|
35
35
|
}
|
36
|
+
if (process.env.NEXT_PRIVATE_PRELOAD_ENTRIES) {
|
37
|
+
module.exports.preload = nextServer.unstable_preloadEntries.bind(nextServer);
|
38
|
+
}
|