Skip to content

Commit

Permalink
fix typo on env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pelazas committed Apr 27, 2024
1 parent 1c2eba8 commit 55cc781
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion multiplayerservice/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
WEBAPP_ENPOINT =http://localhost
WEBAPP_ENDPOINT=http://localhost
4 changes: 2 additions & 2 deletions multiplayerservice/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit 55cc781

Please sign in to comment.