@nx/react:setup-ssr
Create the additional configuration required to enable SSR via Express for a React application.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Create the additional configuration required to enable SSR via Express for a React application.
1nx generate setup-ssr ...
2By default, Nx will search for setup-ssr in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/react:setup-ssr ...
2Show what will be generated without writing to disk:
1nx g setup-ssr ... --dry-run
2The name of the application to add SSR support to.
4200The port for the Express server.
app/appThe import path of the <App/ > component, relative to project sourceRoot.
webpackrspack, webpackThe bundler to use.
[]Extra include entries in tsconfig.
Skip formatting the workspace after the generator completes.
Join us live for exciting talks on developer tooling and monorepos! Catch the action on YouTube and join the conversation on Discord!