Merge pull request 'fix-url' (#2) from fix-url into mauster
Reviewed-on: https://git.mau-mau.nl/MauMau/MauMau-Client/pulls/2
This commit is contained in:
@@ -45,7 +45,7 @@ jobs:
|
|||||||
- name: Create .env File
|
- name: Create .env File
|
||||||
run: |
|
run: |
|
||||||
touch .env
|
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
|
- name: Set up Docker BuildX
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const Room = () => {
|
|||||||
|
|
||||||
const {roomId} = useParams();
|
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>({
|
const [gameState, setGameState] = React.useState<GameState>({
|
||||||
PlayerName: '',
|
PlayerName: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user