@vercel/next 4.2.16 → 4.2.17

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -2
  2. 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];
@@ -15306,7 +15313,8 @@ async function serverBuild({
15306
15313
  hasPages404: routesManifest.pages404,
15307
15314
  isCorrectNotFoundRoutes,
15308
15315
  isEmptyAllowQueryForPrendered,
15309
- isAppPPREnabled
15316
+ isAppPPREnabled,
15317
+ hasActionOutputSupport
15310
15318
  });
15311
15319
  await Promise.all(
15312
15320
  Object.keys(prerenderManifest.staticRoutes).map(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.2.16",
3
+ "version": "4.2.17",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",