Skip to content

@nx/rspack - Executors

The @nx/rspack plugin provides various executors to help you create and configure rspack projects within your Nx workspace. Below is a complete reference for all available executors and their options.

For an overview of the plugin and setup instructions, see the @nx/rspack introduction.

Serve a SSR application using rspack.

OptionTypeDescriptionDefault
browserTargetstring [required]Target which builds the browser application.
serverTargetstring [required]Target which builds the server application.
browserTargetOptionsobjectAdditional options to pass into the browser build target.{}
portnumberThe port the server application listens on. The executor waits for it to accept connections before reporting the server as ready.4200
serverTargetOptionsobjectAdditional options to pass into the server build target.{}