Skip to content

Commit

Permalink
small fix on URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
pelazas committed Apr 26, 2024
1 parent 95b009a commit 3ee97bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion multiplayerservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "service.js",
"scripts": {
"start": "node server.js",
"start:prod": "cross-env WEBAPP_ENDPOINT=http://conoceryvencer.xyz node server.js",
"start:prod": "cross-env WEBAPP_ENDPOINT=http://localhost node server.js",
"test": "jest"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"prod": "cross-env REACT_APP_API_ENDPOINT=http://localhost:8000 serve -s build -l 80",
"prod": "cross-env REACT_APP_API_ENDPOINT=http://localhost:8000 REACT_APP_MULTIPLAYER_ENDPOINT=http://localhost:8006 serve -s build -l 80",
"test": "react-scripts test --transformIgnorePatterns 'node_modules/(?!axios)/'",
"test:e2e": "start-server-and-test 'node e2e/test-environment-setup.js' http://localhost:8000/health prod 3000 \"cd e2e && jest\"",
"eject": "react-scripts eject",
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/game/multiplayer/GameMultiPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface PlayerWithPoints {
const GameMultiPlayer: FC<GameMultiPlayerProps> = () => {

//const SERVER_URL = 'http://conoceryvencer.xyz:8006';
const SERVER_URL = process.env.MULTIPLAYER_ENDPOINT || 'http://localhost:8006';
const SERVER_URL = process.env.REACT_APP_MULTIPLAYER_ENDPOINT || 'http://localhost:8006';

const [socket, setSocket] = useState<SocketProps | null>(null);
const [stage, setStage] = useState<number>(1)
Expand Down

0 comments on commit 3ee97bf

Please sign in to comment.