fix: use static production server

This commit is contained in:
zv
2026-06-24 15:43:41 +02:00
parent 44c4050878
commit e323aa066d
3 changed files with 156 additions and 8 deletions

View File

@@ -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.