mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-19 04:14:46 +08:00
feat: support NEXT_PUBLIC_LANGGRAPH_BASE_URL
This commit is contained in:
@@ -7,3 +7,11 @@ export function getBackendBaseURL() {
|
||||
return "http://localhost:8000";
|
||||
}
|
||||
}
|
||||
|
||||
export function getLangGraphBaseURL() {
|
||||
if (env.NEXT_PUBLIC_LANGGRAPH_BASE_URL) {
|
||||
return env.NEXT_PUBLIC_LANGGRAPH_BASE_URL;
|
||||
} else {
|
||||
return getBackendBaseURL();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user