Fix connection
This commit is contained in:
1 parent
4ad665cac0
commit
b8a847c210
12 files changed
+56
-18
No files matched your search
@@ -20,7 +20,7 @@ export default function LogTerminal({ service, initialLogs = [] }: {
|
||||
|
||||
useEffect(() => {
|
||||
if (!socketRef.current) {
|
||||
socketRef.current = io('http://localhost:3001', {
|
||||
socketRef.current = io(`${import.meta.env.VITE_API_URL || 'http://localhost:3001'}`, {
|
||||
withCredentials: true
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user