Fix build lags

This commit is contained in:
2026-10-02 14:48:38 +01:00
parent 17a5c3df01
commit 8fa5b64b48
38 changed files with 1390 additions and 1238 deletions
+9
View File
@@ -22,6 +22,15 @@ export default async function handleWebPages({ req, }) {
return new Response(existing_cache, res_opts);
}
}
// The dev server port opens before the one-time startup build
// finishes. First page render waits for it so we never serve HTML
// against half-built hydration/SSR modules.
if (is_dev && global.BUNEXT_INITIAL_BUILD_PROMISE) {
try {
await global.BUNEXT_INITIAL_BUILD_PROMISE;
}
catch (error) { }
}
const componentRes = await grabPageComponent({
req,
});