Skip to content

Commit

Permalink
fix(angular): add server ready message to remote server (#13497)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Nov 30, 2022
1 parent a9ac43b commit 4e672b2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Expand Up @@ -107,6 +107,14 @@ function run(): void {
const server = app();
server.listen(port, () => {
console.log(\`Node Express server listening on http://localhost:\${port}\`);
/**
* DO NOT REMOVE IF USING @nrwl/angular:module-federation-dev-ssr executor
* to serve your Host application with this Remote application.
* This message allows Nx to determine when the Remote is ready to be
* consumed by the Host.
*/
process.send && process.send('nx.server.ready');
});
}
Expand Down
Expand Up @@ -58,6 +58,14 @@ function run(): void {
const server = app();
server.listen(port, () => {
console.log(`Node Express server listening on http://localhost:${port}`);

/**
* DO NOT REMOVE IF USING @nrwl/angular:module-federation-dev-ssr executor
* to serve your Host application with this Remote application.
* This message allows Nx to determine when the Remote is ready to be
* consumed by the Host.
*/
process.send && process.send('nx.server.ready');
});
}

Expand Down

0 comments on commit 4e672b2

Please sign in to comment.