Skip to content
Snippets Groups Projects
Commit 8013aba0 authored by thucpn's avatar thucpn
Browse files

config relative /api/chat

parent 1ffe2483
No related branches found
No related tags found
No related merge requests found
......@@ -8,5 +8,5 @@
*/
export const getEnv = (name: string) => {
if (typeof window === "undefined") return undefined;
return (window as any).LLAMAINDEX[name];
return (window as any).LLAMAINDEX?.[name];
};
// Override the window.LLAMAINDEX object to customize frontend
window.LLAMAINDEX = {
CHAT_API: "http://localhost:3000/api/chat",
CHAT_API: "/api/chat",
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment