Skip to content

Commit b21365a

Browse files
fix(federated-css): clear port after failed Next start before retry (robust EADDRINUSE handling)
1 parent 322cefa commit b21365a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

federated-css/scripts/start-all.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ async function main() {
234234
}
235235
}
236236
await ensureExit(proc);
237+
// Make absolutely sure the port is free before retrying
238+
console.log(`[federated-css] clearing port ${port} before retrying ${label}...`);
239+
await ensurePortFree(port, 20000);
237240
await delay(1500 * attempt);
238241

239242
if (attempt === maxAttempts) {

0 commit comments

Comments
 (0)