Frontend Watch
Guidance for running and troubleshooting the current frontend watch workflow.
Overview
webstir watchruns the Bun dev server for frontend workspaces.spaandssgserve rebuilt frontend output directly from the workspace build directory.fulluses the same frontend host and proxies/api/*to the supervised backend runtime.- Hot updates apply when the changed asset can be targeted directly; otherwise the browser falls back to a full reload after rebuild.
CLI Commands
- Default frontend loop:
webstir watch --workspace <absolute-path> - Bind a different address or port:
webstir watch --workspace <absolute-path> --host 0.0.0.0 --port 8088 - One-off frontend build:
bunx webstir-frontend build --workspace <absolute-path> - Targeted frontend rebuild:
bunx webstir-frontend rebuild --workspace <absolute-path> --changed-file <absolute-path>
Failure Recovery
- Stop
webstir watch, then start it again. - If dependencies drift, run
bun installin the workspace, then restart the watch loop. - Rebuild once with
bunx webstir-frontend build --workspace <absolute-path>to confirm the frontend package can emit fresh output outside the long-running watch loop. - If the issue is limited to
full, rerun the workspace withwebstir watchand confirm the backend runtime restarts cleanly after a backend edit.
Fallbacks
- Clearing
build/frontendanddist/frontendis safe; the next build or watch cycle will repopulate outputs. - Frontend-only validation can use
bunx webstir-frontend buildorbunx webstir-frontend rebuilddirectly. - Backend-backed validation in
fullmode should still usewebstir watchso the/apiproxy and runtime restarts stay in the loop.