@nx/rspack:module-federation-ssr-dev-server

Serve a SSR Consumer (host) application along with its known Producers (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.

serverTarget

Required
string

Target which builds the server application.

devRemotes

devProducers
Array<string>

List of Producers (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.

skipRemotes

skipProducers
Array<string>

List of Producers (remote) applications to not automatically serve, either statically or in development mode.

host

string
Default: localhost

Host to listen on.

pathToManifestFile

string

Path to a Module Federation manifest file (e.g. my/path/to/module-federation.manifest.json) containing the dynamic Producers (remote) applications relative to the workspace root.

publicHost

string

Public URL where the application will be served.

staticRemotesPort

staticProducersPort
number

The port at which to serve the file-server for the static Producers (remotes).

ssl

boolean
Default: false

Serve using HTTPS.

sslKey

string

SSL key to use for serving HTTPS.

sslCert

string

SSL certificate to use for serving HTTPS.

isInitialHost

isInitialConsumerInternal
boolean
Default: true

Whether the Consumer (host) that is running this executor is the first in the project tree to do so.