mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-03 22:32:12 +08:00
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