diff --git a/multiplayerservice/.env b/multiplayerservice/.env index 084c0c1..30288fe 100644 --- a/multiplayerservice/.env +++ b/multiplayerservice/.env @@ -1 +1 @@ -WEBAPP_ENPOINT =http://localhost \ No newline at end of file +WEBAPP_ENDPOINT=http://localhost \ No newline at end of file diff --git a/multiplayerservice/server.js b/multiplayerservice/server.js index 59cdece..17c155e 100644 --- a/multiplayerservice/server.js +++ b/multiplayerservice/server.js @@ -9,14 +9,14 @@ require('dotenv').config(); const io = socketIo(server, { cors: { //origin: 'http://conoceryvencer.xyz', - origin: process.env.WEBAPP_ENPOINT || 'http://localhost', + origin: process.env.WEBAPP_ENDPOINT || 'http://localhost', //origin: 'http://localhost:3000', methods: ['GET', 'POST'], credentials: true } }); -console.log(process.env.WEBAPP_ENPOINT) +console.log(process.env.WEBAPP_ENDPOINT) const parties = {}; const lobby = {};