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 |
||
|---|---|---|
| .. | ||
| chat.ts | ||
| evaluate.ts | ||
| hooks.ts | ||
| index.ts | ||
| mcp.ts | ||
| podcast.ts | ||
| prompt-enhancer.ts | ||
| rag.ts | ||
| resolve-service-url.ts | ||
| types.ts | ||