@nrwl/angular:setup-ssr
Create the additional configuration required to enable SSR via Angular Universal for an Angular application.
Create the additional configuration required to enable SSR via Angular Universal for an Angular application.
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/angular:setup-ssr ...
Show what will be generated without writing to disk:
nx g setup-ssr ... --dry-run
The name of the application to generate the Angular Universal configuration for.
serverApp
Format: html-selector
The appId
to use with withServerTransition
.
main.server.ts
Format: path
The name of the main entry-point file.
app.server.module.ts
Format: path
The name of the root module file
AppServerModule
The name of the root module class.
server.ts
The name of the Express server file.
4000
The port for the Express server.
Skip formatting the workspace after the generator completes.