fix: use direct host IP http://192.168.30.30:2024 for LangGraph API
This commit is contained in:
@@ -20,11 +20,8 @@ import CanvasPanel, { type CanvasDoc } from "@/components/CanvasPanel.tsx";
|
||||
import FileUploadButton, { type SelectedFile } from "@/components/FileUploadButton.tsx";
|
||||
import FileAttachmentPreview from "@/components/FileAttachmentPreview.tsx";
|
||||
|
||||
// In Docker dev: VITE_LANGGRAPH_URL is empty → use window.location.origin (same-origin, Vite proxies to langgraph-dev:2024)
|
||||
// Locally without Docker: falls back to http://localhost:2024
|
||||
const LANGGRAPH_URL =
|
||||
import.meta.env.VITE_LANGGRAPH_URL ||
|
||||
(typeof window !== "undefined" ? window.location.origin : "http://localhost:2024");
|
||||
import.meta.env.VITE_LANGGRAPH_URL ?? "http://localhost:2024";
|
||||
|
||||
// ─── Tool groups ────────────────────────────────────────────────────────────
|
||||
const TOOL_GROUPS = [
|
||||
|
||||
Reference in New Issue
Block a user