fix: use static production server
This commit is contained in:
14
README.md
14
README.md
@@ -91,16 +91,24 @@ Build for production:
|
||||
npm run build
|
||||
```
|
||||
|
||||
Preview the production build locally:
|
||||
Run the production static server:
|
||||
|
||||
```bash
|
||||
npm run start
|
||||
```
|
||||
|
||||
This serves the generated `dist/` directory on `0.0.0.0:4173` with SPA fallback enabled.
|
||||
|
||||
Preview the production build with Vite:
|
||||
|
||||
```bash
|
||||
npm run preview
|
||||
```
|
||||
|
||||
You can also use the `start` alias after building:
|
||||
You can override the production server host or port when needed:
|
||||
|
||||
```bash
|
||||
npm run start
|
||||
HOST=127.0.0.1 PORT=8080 npm run start
|
||||
```
|
||||
|
||||
For deployment, serve the generated `dist/` directory with any static web server.
|
||||
|
||||
Reference in New Issue
Block a user