@vercel/next 4.13.2 → 4.13.3
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 +16 -19
- package/package.json +2 -2
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
|
-
|
|
12801
|
-
|
|
12802
|
-
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
|
|
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 = isAppClientParamParsingEnabled ? htmlAllowQuery : allowQuery;
|
|
12807
|
+
let fallback = null;
|
|
12808
|
+
if (rdcRSCAllowQuery && rdcRSCAllowQuery.length === 0 && postponedState) {
|
|
12809
|
+
fallback = new import_build_utils.FileBlob({
|
|
12810
|
+
data: postponedState,
|
|
12811
|
+
contentType
|
|
12812
|
+
});
|
|
12806
12813
|
}
|
|
12807
12814
|
prerenders[normalizePathData(outputPathData)] = new import_build_utils.Prerender({
|
|
12808
12815
|
expiration: initialRevalidate,
|
|
12809
12816
|
staleExpiration: initialExpire,
|
|
12810
12817
|
lambda,
|
|
12811
12818
|
allowQuery: rdcRSCAllowQuery,
|
|
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
|
-
),
|
|
12819
|
+
fallback,
|
|
12820
12820
|
group: prerenderGroup,
|
|
12821
12821
|
bypassToken: prerenderManifest.bypassToken,
|
|
12822
12822
|
experimentalBypassFor,
|
|
@@ -12848,10 +12848,7 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
|
|
|
12848
12848
|
appDir,
|
|
12849
12849
|
routeFileNoExt + prefetchSegmentDirSuffix
|
|
12850
12850
|
);
|
|
12851
|
-
|
|
12852
|
-
if (isAppClientParamParsingEnabled && (isFallback || isBlocking)) {
|
|
12853
|
-
segmentAllowQuery = [];
|
|
12854
|
-
}
|
|
12851
|
+
const segmentAllowQuery = isAppClientParamParsingEnabled ? htmlAllowQuery : allowQuery;
|
|
12855
12852
|
for (const segmentPath of meta.segmentPaths) {
|
|
12856
12853
|
const outputSegmentPath = import_path3.default.join(
|
|
12857
12854
|
outputPathPage + prefetchSegmentDirSuffix,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@types/semver": "6.0.0",
|
|
31
31
|
"@types/text-table": "0.2.1",
|
|
32
32
|
"@types/webpack-sources": "3.2.0",
|
|
33
|
-
"@vercel/build-utils": "12.1.
|
|
33
|
+
"@vercel/build-utils": "12.1.2",
|
|
34
34
|
"@vercel/routing-utils": "5.2.0",
|
|
35
35
|
"async-sema": "3.0.1",
|
|
36
36
|
"buffer-crc32": "0.2.13",
|