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 |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| core | ||
| hooks | ||
| lib | ||
| styles | ||
| typings | ||
| env.js | ||
| i18n.ts | ||