frontend: bind Vite dev server to all interfaces for LAN access
This commit is contained in:
@@ -14,6 +14,9 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
port: 5173,
|
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
|
// The SPA calls the same-origin '/api' prefix. In development Vite
|
||||||
// forwards those requests to the FastAPI process, so the browser stays on
|
// forwards those requests to the FastAPI process, so the browser stays on
|
||||||
// one origin and no CORS configuration is needed.
|
// one origin and no CORS configuration is needed.
|
||||||
|
|||||||
Reference in New Issue
Block a user