Skip to content

Commit

Permalink
fix(module-federation): fix static remote port determination (#20432)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigcakes committed Nov 30, 2023
1 parent d051abc commit 5308737
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ export default async function* moduleFederationDevServerExecutor(
context.projectGraph.nodes[r].data.targets['serve'].options.port;
if (remotePort >= portToUse) {
return remotePort + 1;
} else {
return portToUse;
}
}, options.staticRemotesPort);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ export default async function* moduleFederationDevServer(
context.projectGraph.nodes[r].data.targets['serve'].options.port;
if (remotePort >= portToUse) {
return remotePort + 1;
} else {
return portToUse;
}
}, options.staticRemotesPort);
}
Expand Down

0 comments on commit 5308737

Please sign in to comment.