vite/preview

Preview Production Build

Preview the production build locally

vite
preview
production

Command

npm run preview

Explanation

Serves the production build locally to test how it will work in production.

Examples

Preview production build

npm run preview

Preview on specific port

npm run preview -- --port 4173

Preview accessible from network

npm run preview -- --host