@edgeone/opennextjs-pages 0.2.2-beta.1 → 0.2.2-beta.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.
|
@@ -250,6 +250,10 @@ var copyPrerenderedContent = async (ctx) => {
|
|
|
250
250
|
...Object.entries(manifest.routes).map(
|
|
251
251
|
([route, meta]) => limitConcurrentPrerenderContentHandling(async () => {
|
|
252
252
|
const key = routeToFilePath(route);
|
|
253
|
+
const isPPR = meta.experimentalPPR === true || meta.renderingMode === "PARTIALLY_STATIC";
|
|
254
|
+
if (isPPR) {
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
253
257
|
switch (true) {
|
|
254
258
|
// Parallel route default layout has no prerendered page
|
|
255
259
|
case (meta.dataRoute?.endsWith("/default.rsc") && !existsSync(
|
package/dist/build/routes.js
CHANGED
|
@@ -89,6 +89,10 @@ function getDataRoutes(dataRoutes, basePath = "") {
|
|
|
89
89
|
}
|
|
90
90
|
return routes;
|
|
91
91
|
}
|
|
92
|
+
function isPPRRoute(prerenderInfo) {
|
|
93
|
+
if (!prerenderInfo) return false;
|
|
94
|
+
return prerenderInfo.experimentalPPR === true || prerenderInfo.renderingMode === "PARTIALLY_STATIC";
|
|
95
|
+
}
|
|
92
96
|
function getServerRoutes(staticRoutes, prerenderManifest, basePath = "") {
|
|
93
97
|
const routes = [];
|
|
94
98
|
const prerenderRoutes = prerenderManifest?.routes || {};
|
|
@@ -97,7 +101,7 @@ function getServerRoutes(staticRoutes, prerenderManifest, basePath = "") {
|
|
|
97
101
|
continue;
|
|
98
102
|
}
|
|
99
103
|
const prerenderInfo = prerenderRoutes[route.page];
|
|
100
|
-
if (prerenderInfo && prerenderInfo.initialRevalidateSeconds === false) {
|
|
104
|
+
if (prerenderInfo && prerenderInfo.initialRevalidateSeconds === false && !isPPRRoute(prerenderInfo)) {
|
|
101
105
|
continue;
|
|
102
106
|
}
|
|
103
107
|
if (route.namedRegex) {
|
|
@@ -28,7 +28,7 @@ module.exports = __toCommonJS(tags_handler_exports);
|
|
|
28
28
|
|
|
29
29
|
// package.json
|
|
30
30
|
var name = "@edgeone/opennextjs-pages";
|
|
31
|
-
var version = "0.2.2-beta.
|
|
31
|
+
var version = "0.2.2-beta.2";
|
|
32
32
|
|
|
33
33
|
// src/run/handlers/tags-handler.cts
|
|
34
34
|
var import_request_context = require("./request-context.cjs");
|