Skip to content

Commit

Permalink
update origin
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahim-nazari committed Mar 6, 2024
1 parent 3cd9745 commit 4a6c7e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ let gameStarted = false;
const channelQuestion = {};
//New imports
const httpServer = (0, http_1.createServer)(app);
const origin = process.env.NODE_ENV == "production"
? "https://convose-flashcard-activity.netlify.app"
: process.env.ORIGIN;
console.log("origin -----", origin);
const socketIO = new socket_io_1.Server(httpServer, {
cors: {
origin: "http://localhost:3000",
origin,
},
});
//Add this before the app.get() block
Expand Down

0 comments on commit 4a6c7e7

Please sign in to comment.