@nrwl/react:module-federation-ssr-dev-server

Serve a SSR host application along with its known remotes.

Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.

Options

browserTarget

Required
string

Target which builds the browser application.

devRemotes

Array<string>

List of remote applications to run in development mode (i.e. using serve target).

port

number
Default: 4200

The port to be set on process.env.PORT for use in the server.

serverTarget

Required
string

Target which builds the server application.

skipRemotes

Array<string>

List of remote applications to not automatically serve, either statically or in development mode. This can be useful for multi-repository module federation setups where the host application uses a remote application from an external repository.

host

string
Default: localhost

Host to listen on.