Rsbuild supports building outputs for multiple environments. You can use environments
to define different Rsbuild configurations for each environment.
The configuration in environments
overrides the outer Rsbuild base configuration.
undefined
Configure Rsbuild configuration for web
(client) and node
(SSR) environments:
For the web
environment, the merged Rsbuild configuration is:
For the node
environment, the merged Rsbuild configuration is: