@vercel/next 4.13.1 → 4.13.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.
Files changed (2) hide show
  1. package/dist/index.js +19 -16
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12796,27 +12796,27 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
12796
12796
  }
12797
12797
  if (outputPathData && renderingMode !== "PARTIALLY_STATIC" /* PARTIALLY_STATIC */) {
12798
12798
  prerenders[normalizePathData(outputPathData)] = prerender;
12799
- } else if (outputPathData && routesManifest?.rsc?.dynamicRSCPrerender && routesManifest?.ppr?.chain?.headers) {
12800
- let contentType = rscContentTypeHeader;
12801
- if (postponedState) {
12802
- contentType = `application/x-nextjs-pre-render; state-length=${postponedState.length}; origin=${JSON.stringify(
12803
- rscContentTypeHeader
12804
- )}`;
12805
- }
12806
- const rdcRSCAllowQuery = htmlAllowQuery;
12807
- let fallback = null;
12808
- if (rdcRSCAllowQuery && rdcRSCAllowQuery.length === 0 && postponedState) {
12809
- fallback = new import_build_utils.FileBlob({
12810
- data: postponedState,
12811
- contentType
12812
- });
12799
+ } else if (outputPathData && routesManifest?.rsc?.dynamicRSCPrerender && routesManifest?.ppr?.chain?.headers && postponedState) {
12800
+ const contentType = `application/x-nextjs-pre-render; state-length=${postponedState.length}; origin=${JSON.stringify(
12801
+ rscContentTypeHeader
12802
+ )}`;
12803
+ let rdcRSCAllowQuery = allowQuery;
12804
+ if (isAppClientParamParsingEnabled) {
12805
+ rdcRSCAllowQuery = [];
12813
12806
  }
12814
12807
  prerenders[normalizePathData(outputPathData)] = new import_build_utils.Prerender({
12815
12808
  expiration: initialRevalidate,
12816
12809
  staleExpiration: initialExpire,
12817
12810
  lambda,
12818
12811
  allowQuery: rdcRSCAllowQuery,
12819
- fallback,
12812
+ fallback: (
12813
+ // Use the fallback value for the RSC route if the route doesn't
12814
+ // vary based on the route parameters.
12815
+ rdcRSCAllowQuery && rdcRSCAllowQuery.length === 0 ? new import_build_utils.FileBlob({
12816
+ data: postponedState,
12817
+ contentType
12818
+ }) : null
12819
+ ),
12820
12820
  group: prerenderGroup,
12821
12821
  bypassToken: prerenderManifest.bypassToken,
12822
12822
  experimentalBypassFor,
@@ -12848,7 +12848,10 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
12848
12848
  appDir,
12849
12849
  routeFileNoExt + prefetchSegmentDirSuffix
12850
12850
  );
12851
- const segmentAllowQuery = htmlAllowQuery;
12851
+ let segmentAllowQuery = allowQuery;
12852
+ if (isAppClientParamParsingEnabled && (isFallback || isBlocking)) {
12853
+ segmentAllowQuery = [];
12854
+ }
12852
12855
  for (const segmentPath of meta.segmentPaths) {
12853
12856
  const outputSegmentPath = import_path3.default.join(
12854
12857
  outputPathPage + prefetchSegmentDirSuffix,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.13.1",
3
+ "version": "4.13.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",