feat(server): use UtilityWebsiteServer for dev server, add domain option, update docs, and bump dependencies
This commit is contained in:
@@ -66,7 +66,7 @@ tswatch is now a config-driven TypeScript file watcher. Configuration is read fr
|
||||
- Uses `@push.rocks/npmextra` for reading npmextra.json config
|
||||
- Uses `@push.rocks/smartinteract` for the init wizard
|
||||
- Uses `@git.zone/tsbundle` for bundling with esbuild
|
||||
- Uses `@api.global/typedserver` for development server
|
||||
- Uses `@api.global/typedserver` `UtilityWebsiteServer` for development server (wraps TypedServer with service worker, PWA manifest, and live reload)
|
||||
|
||||
### Watcher Features
|
||||
|
||||
@@ -77,12 +77,16 @@ tswatch is now a config-driven TypeScript file watcher. Configuration is read fr
|
||||
|
||||
### Server Features
|
||||
|
||||
- Uses `UtilityWebsiteServer` from `@api.global/typedserver` (not raw `TypedServer`)
|
||||
- Port configurable (default: 3002)
|
||||
- CORS enabled
|
||||
- Gzip compression
|
||||
- Live reload injection (configurable)
|
||||
- Compression (brotli + gzip)
|
||||
- Live reload via WebSocket (service worker + devtools injection)
|
||||
- SPA fallback support
|
||||
- No-cache headers (prevents browser caching during development)
|
||||
- PWA manifest auto-generated
|
||||
- Service worker version info handler
|
||||
- Domain configurable (default: 'localhost')
|
||||
|
||||
## Project Structure
|
||||
|
||||
|
||||
Reference in New Issue
Block a user