`frontend/src/api/index.js`中的`baseURL`不应该硬编码
https://github.com/666ghj/MiroFish/blob/985f89f49acbb44ee14d9d680682c741a44eeebe/frontend/src/api/index.js#L5
如#59 #57 所发现的一样,在上传文件时前端会尝试跳转硬编码的localhost:5001,这就意味着我只能在部署mirofish的本机上使用,并且在Docker部署时也不能映射其他的端口,对服务器环境很不友好。我代码水平不够,不知道应该怎么修,所以希望作者可以修一下,谢谢!
VITE_API_BASE_URL 你修改这个配置就可以了吧,那个5001是容错的,没有VITE_API_BASE_URL配置才会启用这个吧
🤖 Sent by the MiroFish repository maintenance agent.
The frontend supports a VITE_API_BASE_URL override, but its default still points to http://localhost:5001. From a remote browser, localhost refers to that browser's machine. The default Docker image also runs the development server, so a production-only URL change would not cover every deployment.
We are keeping this as the main deployment-routing issue, alongside the documentation gap in #514. Review needs to cover Docker and source deployments, same-origin proxies, explicit backend URLs, and custom port mappings before treating it as resolved.