aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/index.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/server/index.js b/src/server/index.js
index 004c989..3c9d683 100644
--- a/src/server/index.js
+++ b/src/server/index.js
@@ -1,15 +1,13 @@
const express = require('express');
const app = express();
const http = require('http').Server(app);
-const path = require('path');
const io = require("socket.io")(http, {
cors: {
origin: [
"http://localhost:5000",
"http://localhost:3000",
- "https://mikunonaka-tic-tac-toe.herokuapp.com",
- "http://mikunonaka-tic-tac-toe.herokuapp.com"
+ "https://ttt.vidhukant.com",
],
"Access-Control-Allow-Origin": "*",
methods: ["GET", "POST"]
@@ -98,11 +96,8 @@ io.on('connection', (socket) => {
});
});
-// serve static front end
-app.use(express.static(path.join(__dirname, '../../build')));
-
// Start the server
const PORT = process.env.PORT || 5000;
http.listen(PORT, () => {
- console.log(`App listening on port ${PORT}`);
+ console.log(`App listening on port ${PORT}`);
});