frontend: fail loudly instead of drifting to another port when 5173 is taken
This commit is contained in:
@@ -17,6 +17,10 @@ export default defineConfig({
|
||||
// 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,
|
||||
// Fail loudly if 5173 is taken instead of silently moving to 5174. Without
|
||||
// this, a stray process on 5173 makes the server drift to the next free
|
||||
// port and the documented URL quietly stops working.
|
||||
strictPort: 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.
|
||||
|
||||
Reference in New Issue
Block a user