mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-16 22:59:04 +02:00
The .env.example had hardcoded http://localhost:8080 defaults for NEXT_PUBLIC_API_URL and NEXT_PUBLIC_WS_URL. When users copied .env.example to .env and customized the backend port, the old defaults would still get baked into the frontend at docker build time via NEXT_PUBLIC_WS_URL build arg, causing API/WebSocket connection failures. With empty defaults: - Docker selfhost: frontend uses relative paths, Next.js rewrites proxy to backend internally — works regardless of external port config - Local dev (make dev): Makefile sets these to localhost:$PORT automatically - Browser fallback: deriveWsUrl() auto-derives WebSocket URL from page origin when NEXT_PUBLIC_WS_URL is empty Closes #1055 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2.0 KiB
2.0 KiB