From ff024ed9273eef3627098ca06deea5bc9af02bc3 Mon Sep 17 00:00:00 2001 From: govin Date: Fri, 18 Sep 2026 12:34:32 +0800 Subject: [PATCH] frontend: bind Vite dev server to all interfaces for LAN access --- frontend/vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index ef28e10..87b9ac5 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -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.