mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-23 08:25:57 +00:00
fix(config): update SSR fallback in getBaseOrigin function (#1617)
This commit is contained in:
@@ -4,7 +4,8 @@ function getBaseOrigin() {
|
|||||||
if (typeof window !== "undefined") {
|
if (typeof window !== "undefined") {
|
||||||
return window.location.origin;
|
return window.location.origin;
|
||||||
}
|
}
|
||||||
return undefined;
|
// Fallback for SSR
|
||||||
|
return "http://localhost:2026";
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getBackendBaseURL() {
|
export function getBackendBaseURL() {
|
||||||
|
|||||||
Reference in New Issue
Block a user