Spaces:
Runtime error
Runtime error
Use relative API/Socket URLs for production
Browse files
client/src/features/chat/socketClient.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import { io } from 'socket.io-client'
|
| 2 |
|
| 3 |
-
const SOCKET_URL = import.meta.env.VITE_SOCKET_URL ||
|
| 4 |
|
| 5 |
let socket = null
|
| 6 |
let currentToken = null
|
|
|
|
| 1 |
import { io } from 'socket.io-client'
|
| 2 |
|
| 3 |
+
const SOCKET_URL = import.meta.env.VITE_SOCKET_URL || undefined
|
| 4 |
|
| 5 |
let socket = null
|
| 6 |
let currentToken = null
|