Persist Request accorss hydration refreshes

This commit is contained in:
2026-04-11 12:52:56 +01:00
parent 814a289460
commit 35f7a6fc85
14 changed files with 37 additions and 18 deletions
@@ -5,6 +5,7 @@ import grabArtifactsFromBundledResults from "../grab-artifacts-from-bundled-resu
import pagesSSRContextBundler from "../pages-ssr-context-bundler";
import buildOnstartErrorHandler from "../build-on-start-error-handler";
import apiRoutesContextBundler from "../api-routes-context-bundler";
import _ from "lodash";
let build_start = 0;
let build_starts = 0;
@@ -50,7 +51,10 @@ export default function esbuildCTXArtifactTracker({
const artifact = artifacts[i];
if (artifact?.local_path && global.BUNDLER_CTX_MAP) {
global.BUNDLER_CTX_MAP[artifact.local_path] =
artifact;
_.merge(
global.BUNDLER_CTX_MAP[artifact.local_path],
artifact,
);
}
}