Add hot-reload docker-compose.dev.yml
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 8s
CI & Build / TypeScript typecheck (push) Successful in 10s
CI & Build / Build & push image (push) Successful in 30s

Dev stack with live reload: Postgres + backend (hypercorn --reload, src mounted)
+ Vite dev server (mounted, proxies /api to the api service). vite proxy target
is now env-configurable (VITE_API_TARGET, defaults localhost:5000 for host dev).
README documents both compose files (dev hot-reload vs prod image).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FRgehjoz7Yv8LkUfADxACm
This commit is contained in:
2026-07-19 20:57:09 -04:00
co-authored by Claude Opus 4.8
parent 68f7b260de
commit 2ae533e967
3 changed files with 84 additions and 7 deletions
+3 -2
View File
@@ -10,8 +10,9 @@ export default defineConfig({
server: {
port: 5173,
proxy: {
// Dev: proxy API + health to the Quart backend on :5000.
"/api": "http://localhost:5000",
// Proxy /api to the Quart backend. Defaults to localhost:5000 for host dev;
// docker-compose.dev.yml sets VITE_API_TARGET=http://api:5000.
"/api": process.env.VITE_API_TARGET || "http://localhost:5000",
},
},
});