diff --git a/Dockerfile b/Dockerfile index c78d763..de3e87f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,4 @@ COPY . . EXPOSE 5713 -ENTRYPOINT ["npm", "run", "dev", "--", "--port=5713", "--host=0.0.0.0"] \ No newline at end of file +ENTRYPOINT ["npm", "run", "dev", "--", "--port=5173", "--host=0.0.0.0"] \ No newline at end of file diff --git a/src/socket.js b/src/socket.js index 71444d3..9b5ba2e 100644 --- a/src/socket.js +++ b/src/socket.js @@ -1,7 +1,6 @@ -import process from 'process'; import { io } from 'socket.io-client'; -const URL = process.env.BACKEND_URL || 'http://localhost:5174'; +const URL = 'http://minesweeper-backend:5174'; export const socket = io(URL, { autoConnect: false, transports: ['websocket'],