@vercel/next 4.2.6 → 4.2.7

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 +17 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13299,6 +13299,16 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
13299
13299
  } : {}
13300
13300
  });
13301
13301
  }
13302
+ if (outputPrerenderPathData?.endsWith(".json") && appDir) {
13303
+ const dummyOutput = new import_build_utils.FileBlob({
13304
+ data: "{}",
13305
+ contentType: "application/json"
13306
+ });
13307
+ const rscKey = `${outputPathPage}.rsc`;
13308
+ const prefetchRscKey = `${outputPathPage}${RSC_PREFETCH_SUFFIX}`;
13309
+ prerenders[rscKey] = dummyOutput;
13310
+ prerenders[prefetchRscKey] = dummyOutput;
13311
+ }
13302
13312
  ++prerenderGroup;
13303
13313
  if (routesManifest?.i18n && isBlocking) {
13304
13314
  for (const locale2 of routesManifest.i18n.locales) {
@@ -15452,9 +15462,15 @@ async function serverBuild({
15452
15462
  );
15453
15463
  if (lambdas[pathname]) {
15454
15464
  lambdas[`${pathname}.rsc`] = lambdas[pathname];
15465
+ if (experimental.ppr) {
15466
+ lambdas[`${pathname}${RSC_PREFETCH_SUFFIX}`] = lambdas[pathname];
15467
+ }
15455
15468
  }
15456
15469
  if (edgeFunctions[pathname]) {
15457
15470
  edgeFunctions[`${pathname}.rsc`] = edgeFunctions[pathname];
15471
+ if (experimental.ppr) {
15472
+ edgeFunctions[`${pathname}${RSC_PREFETCH_SUFFIX}`] = edgeFunctions[pathname];
15473
+ }
15458
15474
  }
15459
15475
  }
15460
15476
  }
@@ -15750,7 +15766,7 @@ async function serverBuild({
15750
15766
  }
15751
15767
  ] : [],
15752
15768
  {
15753
- src: `^${import_path4.default.posix.join("/", entryDirectory, "/")}`,
15769
+ src: `^${import_path4.default.posix.join("/", entryDirectory, "/?")}`,
15754
15770
  has: [
15755
15771
  {
15756
15772
  type: "header",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.2.6",
3
+ "version": "4.2.7",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",