diff --git a/src/server/index.js b/src/server/index.js index 0d6d0c7..e04a38d 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -7,7 +7,7 @@ let tmdb = require("./tmdb.js"); // #region Express setup const app = express(); -const port = 3001; +const port = 3000; app.listen(port, () => { console.log(`Listening on port ${port}`) }) @@ -27,7 +27,8 @@ api.use(require('express-log-url')); // #region frontend // Serve static files from the React app -app.use('/static', express.static(path.join(__dirname, 'clientbuild'))); +app.use('/', express.static(path.join(__dirname, 'clientbuild'))); +app.use('/tournament/', express.static(path.join(__dirname, 'clientbuild'))); // #endregion @@ -262,4 +263,4 @@ api.post("/tournament/:tournamentId/createTeam", (req, res) => { }); -// #endregion \ No newline at end of file +// #endregion