Skip to content

Commit f5d92e1

Browse files
committed
path express
1 parent d76924d commit f5d92e1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

server.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ const ACTIONS = require('./src/actions/Actions');
1010
const server = http.createServer(app);
1111
const io = new Server(server);
1212

13+
app.use(express.static('build'));
14+
app.use((req, res, next) => {
15+
res.sendFile(path.join(__dirname, 'build', 'index.html'));
16+
});
17+
1318
const userSocketMap = {};
1419
function getAllConnectedClients(roomId) {
1520
// Map

0 commit comments

Comments
 (0)