@nrwl/react:setup-ssr

Create the additional configuration required to enable SSR via Angular Universal for an Angular application.

Usage

nx generate setup-ssr ...

By default, Nx will search for setup-ssr in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nrwl/react:setup-ssr ...

Show what will be generated without writing to disk:

nx g setup-ssr ... --dry-run

Options

appComponentImportPath

string
Default: app/app

The import path of the <App/> component, relative to project sourceRoot.

project

Required
string

The name of the application to add SSR support to.

serverPort

number
Default: 4200

The port for the Express server.

skipFormat

boolean

Skip formatting the workspace after the generator completes.