Skip to content

Commit 38a7bf3

Browse files
fix: await killPort before starting each Next.js server
- Ensure port cleanup is awaited for proper async execution - Fixes race condition where port might not be fully released 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent fd87687 commit 38a7bf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

federated-css/scripts/start-all.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async function main() {
120120
console.log('[federated-css] starting Next consumers (sequential dev servers)...');
121121
for (const { dir, port } of nextConsumers) {
122122
// Extra cleanup for each Next.js port in case previous one didn't clean up properly
123-
killPort(port);
123+
await killPort(port);
124124
await new Promise(resolve => setTimeout(resolve, 500)); // Small delay to ensure port is released
125125
const cwd = path.join('consumers-nextjs', dir);
126126
const p = run('pnpm', ['-C', cwd, 'run', 'start']);

0 commit comments

Comments
 (0)