frontend: bind Vite dev server to all interfaces for LAN access

This commit is contained in:
2026-09-18 12:34:32 +08:00
parent 5128e1551c
commit ff024ed927
+3
View File
@@ -14,6 +14,9 @@ export default defineConfig({
},
server: {
port: 5173,
// Listen on all interfaces so the dev server is reachable from the LAN
// (e.g. http://192.168.1.88:5173), not just from localhost.
host: true,
// The SPA calls the same-origin '/api' prefix. In development Vite
// forwards those requests to the FastAPI process, so the browser stays on
// one origin and no CORS configuration is needed.