preview
The rs preview command uses Rsbuild to preview an application's production build locally.
Usage
The command loads the application configuration registered with define.app(). Run rs build before starting the preview server to generate the production output:
rs preview is intended for local preview only. Do not use it as a production server.
Options
rs preview supports the same preview server options as Rsbuild. See the Rsbuild CLI documentation for details.
Examples:
Configuration
Configure the preview server through define.app() in the Rstack configuration file. It accepts the standard Rsbuild configuration:
rstack.config.ts