Skip to content

Commit 0480054

Browse files
committed
fix: revert base url
1 parent 0b34d53 commit 0480054

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/server/webui/src/Config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import { AgentTool } from './utils/tool_calling/agent_tool';
66
export const isDev = import.meta.env.MODE === 'development';
77

88
// constants
9-
export const BASE_URL = 'http://127.0.0.1:8080';
9+
export const BASE_URL = new URL('.', document.baseURI).href
10+
.toString()
11+
.replace(/\/$/, '');
1012

1113
export const CONFIG_DEFAULT = {
1214
// Note: in order not to introduce breaking changes, please keep the same data type (number, string, etc) if you want to change the default value. Do not use null or undefined for default value.

0 commit comments

Comments
 (0)