Files
bvandeusenandClaude Opus 4.8 2ae533e967
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
Add hot-reload docker-compose.dev.yml
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
2026-07-19 20:57:09 -04:00

19 lines
465 B
TypeScript

import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
export default defineConfig({
plugins: [vue()],
build: {
outDir: "dist",
emptyOutDir: true,
},
server: {
port: 5173,
proxy: {
// 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",
},
},
});