mirror of https://github.com/langgenius/dify.git
change default ws url
This commit is contained in:
parent
068fa3d0e3
commit
efa2307c73
|
|
@ -9,7 +9,7 @@ export class WebSocketClient {
|
|||
|
||||
constructor(config: WebSocketConfig = {}) {
|
||||
this.config = {
|
||||
url: config.url || process.env.NEXT_PUBLIC_SOCKET_URL || 'ws://localhost:5001',
|
||||
url: config.url || process.env.NEXT_PUBLIC_SOCKET_URL || 'ws://api:5001',
|
||||
transports: config.transports || ['websocket'],
|
||||
withCredentials: config.withCredentials !== false,
|
||||
...config,
|
||||
|
|
|
|||
Loading…
Reference in New Issue