Skip to content

Commit

Permalink
Updated server / route
Browse files Browse the repository at this point in the history
  • Loading branch information
samanthathompson52 committed Dec 13, 2023
1 parent a6671d1 commit d538d45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ const wsServer = new WebSocketServer({ server });
// app.use(express.static(path.join(__dirname, './client/build')));

// // Handle all other routes
// app.get('*', (req, res) => {
// res.sendFile(path.join(__dirname, '../client/build', 'index.html'));
// });
app.get('/', (req, res) => {
res.send('Hello World!');
});

// app.use(express.static(path.join(__dirname, "./client/build", "index.html")));
// app.use(express.static("public"));

const port = 8000;
const port = process.env.PORT || 8000;
server.listen(port, () => {
console.log(`WebSocket server is running on port ${port}`);
});
Expand Down

0 comments on commit d538d45

Please sign in to comment.