Update WebSocket configuration to use environment variable for URL instead of hardcoded value.
This commit is contained in:
@@ -76,7 +76,7 @@ interface WebSocketState {
|
||||
|
||||
// 默认配置
|
||||
const DEFAULT_CONFIG: WebSocketConfig = {
|
||||
url: "wss://kf.quwanzhi.com:9993",
|
||||
url: (import.meta as any).env?.VITE_API_WS_URL,
|
||||
client: "kefu-client",
|
||||
accountId: 0,
|
||||
accessToken: "",
|
||||
|
||||
Reference in New Issue
Block a user