Skip to content

react-slides preview

Serve the production build locally — the output of react-slides build, not a dev server.

Terminal window
react-slides build
react-slides preview [--port 4173] [--host] [--open] [--out dist] [--base /]

The speaker view is served at /speaker.

preview applies the same vite settings from react-slides.config.ts as build (for example vite.base), so the deck is served under the same base path. If you passed --out or --base to build, pass the same values to preview.