Merge pull request 'fix-url' (#2) from fix-url into mauster
Some checks failed
Build Mau & Deploy Mau / deploy (push) Has been cancelled
Build Mau & Deploy Mau / build (push) Has been cancelled

Reviewed-on: https://git.mau-mau.nl/MauMau/MauMau-Client/pulls/2
This commit is contained in:
2024-04-17 08:42:00 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ jobs:
- name: Create .env File
run: |
touch .env
echo "REACT_APP_API_URL=https://mau-mau.nl/api" > .env
echo "REACT_APP_API_URL=https://mau-mau.nl/api \n REACT_APP_WEBSOCKET_URL=ws://mau-mau.nl/api" > .env
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2

View File

@@ -31,7 +31,7 @@ const Room = () => {
const {roomId} = useParams();
const WS_URL = `ws://${process.env.REACT_APP_API_URL}/room/${roomId}`;
const WS_URL = `${process.env.REACT_APP_WEBSOCKET_URL}/room/${roomId}`;
const [gameState, setGameState] = React.useState<GameState>({
PlayerName: '',