From d97e943ff1c619d81e096b35a81afe77a3bafc9c Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Mon, 28 Mar 2022 21:21:55 +0200 Subject: [PATCH] Change static listening path --- src/server/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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