split Dockerfile, dynamic backend URL
This commit is contained in:
parent
8d09663eff
commit
3d69f592f6
15 changed files with 75 additions and 60 deletions
|
|
@ -2,9 +2,10 @@ import './Controls.css';
|
|||
import useWebSocket, {ReadyState} from 'react-use-websocket';
|
||||
import {useEffect} from 'react';
|
||||
import {Guid} from "./Guid.ts";
|
||||
import {makeApiUrl} from './serverCalls.tsx';
|
||||
|
||||
export default function Controls({playerId}: { playerId: Guid }) {
|
||||
const url = new URL('controls', import.meta.env.VITE_TANK_WS);
|
||||
const url = makeApiUrl('/controls', 'ws');
|
||||
url.searchParams.set('playerId', playerId);
|
||||
|
||||
const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue