deerflow2/web/src/core/api
Willem Jiang 436cd63004 fix(web): enable runtime API URL detection for cross-machine access (#777) (#783)
When NEXT_PUBLIC_API_URL is not explicitly configured, the frontend now
automatically detects the API URL based on the current page's hostname.
This allows accessing DeerFlow from other machines without rebuilding
the frontend.

- Add getBaseURL() helper with runtime window.location detection
- Use same protocol and hostname with default port 8000
- Preserve explicit NEXT_PUBLIC_API_URL configuration when set
- Fallback to localhost:8000 for SSR scenarios
2025-12-25 22:34:26 +08:00
..
chat.ts feat(web): add enable_web_search frontend UI (#681) (#766) 2025-12-17 23:36:32 +08:00
evaluate.ts feat(eval): add report quality evaluation module and UI integration (#776) 2025-12-25 21:55:48 +08:00
hooks.ts fix: improve config loading resilience for non-localhost access (#510) (#658) 2025-10-26 07:34:12 +08:00
index.ts feat(eval): add report quality evaluation module and UI integration (#776) 2025-12-25 21:55:48 +08:00
mcp.ts improve: add abort btn to abort the mcp add request. (#284) 2025-06-26 08:51:46 +08:00
podcast.ts feat: implement MCP UIs 2025-04-24 15:41:33 +08:00
prompt-enhancer.ts feat: implement enhance prompt (#294) 2025-06-08 19:41:59 +08:00
rag.ts feat: add deep think feature (#311) 2025-06-14 13:12:43 +08:00
resolve-service-url.ts fix(web): enable runtime API URL detection for cross-machine access (#777) (#783) 2025-12-25 22:34:26 +08:00
types.ts feat: add deep think feature (#311) 2025-06-14 13:12:43 +08:00