From 01b7566ffc84ed7fe4b0ba2e0e6318b80ac1740c Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Mon, 28 Mar 2022 19:32:11 +0200 Subject: [PATCH] Moved static root --- src/server/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/server/index.js b/src/server/index.js index f6d465a..913a957 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -27,9 +27,8 @@ api.use(require('express-log-url')); // #region frontend // Serve static files from the React app -api.get("/", (req, res) => { - res.sendFile(path.join(__dirname, "public", "landing.html")); -}); +app.use('/static', express.static(path.join(__dirname, 'clientbuild'))); + // #endregion // #region API