Documentation Improvement
When deploying MiroFish on a VPS and accessing remotely, users get 'Network error' because:
- The axios client in
frontend/src/api/index.js defaults to http://localhost:5001
- The Vite dev server proxy (
/api → localhost:5001) only works in local development
- When accessed remotely, the browser tries to connect to
localhost:5001 on the browser's machine, not the VPS
Proposed Documentation
Document VITE_API_BASE_URL in .env.example and add remote deployment notes to README.
Files to Update
.env.example - Add VITE_API_BASE_URL with explanation
README.md - Add 'Remote/VPS Deployment Note' section
README-ZH.md - Add Chinese version of remote deployment note
Documentation Improvement
When deploying MiroFish on a VPS and accessing remotely, users get 'Network error' because:
frontend/src/api/index.jsdefaults tohttp://localhost:5001/api→localhost:5001) only works in local developmentlocalhost:5001on the browser's machine, not the VPSProposed Documentation
Document
VITE_API_BASE_URLin.env.exampleand add remote deployment notes to README.Files to Update
.env.example- AddVITE_API_BASE_URLwith explanationREADME.md- Add 'Remote/VPS Deployment Note' sectionREADME-ZH.md- Add Chinese version of remote deployment note