diff --git a/src/frontend/src/components/chatComponent/buildTrigger/index.tsx b/src/frontend/src/components/chatComponent/buildTrigger/index.tsx index 22b052aa7..56d587236 100644 --- a/src/frontend/src/components/chatComponent/buildTrigger/index.tsx +++ b/src/frontend/src/components/chatComponent/buildTrigger/index.tsx @@ -58,7 +58,7 @@ export default function BuildTrigger({ // Step 2: Use the session ID to establish an SSE connection using EventSource let validationResults = []; let finished = false; - const apiUrl = `/build/stream/${flowId}`; + const apiUrl = `/api/v1/build/stream/${flowId}`; const eventSource = new EventSource(apiUrl); try{ eventSource.onmessage = (event) => { diff --git a/src/frontend/vite.config.ts b/src/frontend/vite.config.ts index d572ebc07..58ee67335 100644 --- a/src/frontend/vite.config.ts +++ b/src/frontend/vite.config.ts @@ -7,6 +7,7 @@ const apiRoutes = [ "^/api/v1/validate/*", "/api/v1/chat/*", "/api/v1/version", + "^/api/v1/build/*", "/health", ];