added pushing to AWS ECR

This commit is contained in:
Wenszel
2023-12-24 19:53:38 +01:00
parent 766614f5d2
commit 0b21489989
2 changed files with 21 additions and 29 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ function App() {
const [playerSocket, setPlayerSocket] = useState();
const [redirect, setRedirect] = useState();
useEffect(() => {
const socket = io('http://localhost:8080', { withCredentials: true });
const socket = io(`http://${window.location.hostname}:8080`, { withCredentials: true });
socket.on('player:data', data => {
data = JSON.parse(data);
setPlayerData(data);