mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 20:49:32 +00:00
use window location for ws in prod
This commit is contained in:
@@ -172,7 +172,7 @@ export const state = writable<State>({
|
||||
export const connect = () => {
|
||||
const token = Cookies.get('token')
|
||||
if (token) {
|
||||
let url = "ws://localhost:3000/realtime"
|
||||
let url = `ws://${window.location.hostname}/realtime`
|
||||
if (dev) {
|
||||
url = "ws://localhost:3001/realtime"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user