From a06f883ebbea57faabf64ff491e7e0b25a339aa7 Mon Sep 17 00:00:00 2001 From: "courtmanr@gmail.com" Date: Thu, 24 Apr 2025 23:02:15 +0100 Subject: [PATCH] refactor(server): Explicitly disable index serving in express.static --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index 65a466ffd..e33764998 100644 --- a/server/index.js +++ b/server/index.js @@ -450,7 +450,7 @@ app.use(express.json()); const publicDir = path.join(__dirname, '../src/public'); // Serve static files (CSS, JS, images) from the public directory -app.use(express.static(publicDir)); +app.use(express.static(publicDir, { index: false })); // Route to serve the main HTML file for the root path app.get('/', (req, res) => {