Add retries to page component function error. Reload for all 404 pages

This commit is contained in:
2026-04-11 08:48:01 +01:00
parent 5a0972beb8
commit af8c207ac1
18 changed files with 293 additions and 238 deletions
+4
View File
@@ -9,6 +9,10 @@ export default async function serverPostBuildFn() {
if (!controller?.target_map?.local_path) {
continue;
}
if (global.IS_404_PAGE) {
controller.controller.enqueue(`event: update\ndata: ${JSON.stringify({ reload: true })}\n\n`);
continue;
}
const target_artifact = global.BUNDLER_CTX_MAP[controller.target_map.local_path];
const mock_req = new Request(controller.page_url);
const { serverRes } = global.IS_SERVER_COMPONENT