moustafa7 commited on
Commit
dee3ea7
·
1 Parent(s): e8176d5

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 || 'http://localhost:5000'
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