Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
1d4af7c7578c9fd80373caed0b08b24574dacb9b
RuView
/
ui
/
config
下载当前目录
R
ruv
fix: UI auto-detects server port from page origin (
#55
)
3b72f353
创建于
3月1日
历史提交
文件
最后提交记录
最后更新时间
api.config.js
fix: UI auto-detects server port from page origin (#55) The UI had hardcoded localhost:8080 for HTTP and localhost:8765 for WebSocket, causing "Backend unavailable" when served from Docker (port 3000) or any non-default port. Changes: - api.config.js: BASE_URL now uses window.location.origin instead of hardcoded localhost:8080 - api.config.js: buildWsUrl() uses window.location.host instead of hardcoded localhost:8080 - sensing.service.js: WebSocket URL derived from page origin instead of hardcoded localhost:8765 - main.rs: Added /ws/sensing route to the HTTP server so WebSocket and REST are reachable on a single port Fixes #55 Co-Authored-By: claude-flow <ruv@ruv.net>
2 个月前