Skip to content

Commit 9f5ba3e

Browse files
committed
fix: Restore URL_ROOT assignment to prioritize GC_AI_SEARCH_SERVER_URL for better configuration
1 parent b6cd8c6 commit 9f5ba3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/gc-qa-rag-frontend/src/services/ApiService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { MessageItem } from "../types/Api";
44
class RetriableError extends Error { }
55
class FatalError extends Error { }
66

7-
//const URL_ROOT = ((window as any).GC_AI_SEARCH_SERVER_URL) || (window.location.protocol + "//" + window.location.hostname + ":8000");
8-
const URL_ROOT = (window.location.protocol + "//" + window.location.hostname + ":8000");
7+
const URL_ROOT = ((window as any).GC_AI_SEARCH_SERVER_URL) || (window.location.protocol + "//" + window.location.hostname + ":8000");
8+
//const URL_ROOT = (window.location.protocol + "//" + window.location.hostname + ":8000");
99

1010
export const getSearchResult = async (
1111
keyword: string,

0 commit comments

Comments
 (0)