mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-14 23:22:51 +00:00
In --watch-web dev mode the server silently fell back to the embedded SPA snapshot whenever the disk dist/ was missing or partial, so edits to the web app appeared not to take effect with no error anywhere. This change makes the dev loop visible and quick: - static_files plumbs a dev_disk_only flag from RouterOptions.watch_web into the fallback handler. When set, embedded fallback is skipped and a miss returns 503 with a "build in progress" auto-refresh page. - The web build script writes each rebuild into apps/fabro-web/.dist-builds/<id>/ and atomically replaces the dist symlink via rename(2), so requests never observe a partially-populated dist tree. - Tailwind is invoked through node_modules/.bin/tailwindcss directly instead of bunx, removing a per-rebuild bun add @latest --force round- trip and dropping rebuild time from ~10s to ~250ms. - load_asset no longer falls through to the workspace dist/ when an explicit asset_root is provided, restoring test isolation when a real dev build is sitting next door. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fabro-web | ||
| marketing | ||
| remotion | ||