From 5a22a17e81b1e0d385650439343f1ccbcc041a08 Mon Sep 17 00:00:00 2001 From: webbrain-one <295484252+webbrain-one@users.noreply.github.com> Date: Tue, 11 Aug 2026 22:09:22 +0300 Subject: [PATCH] fix: correct index.html path in server/index.js The backend was referencing a non-existent `dist/index.html`, causing the server to crash. Updated the path to point to the correct location in the `src` directory. Fixes #7 --- server/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/index.js b/server/index.js index 768984a..884f7bc 100644 --- a/server/index.js +++ b/server/index.js @@ -54,16 +54,16 @@ app.use(cors(corsOptions)); app.use(express.json()); app.use(express.urlencoded({ extended: true })); app.use(express.json()); -app.use(express.static(path.join(__dirname, "../client/dist"))); +app.use(express.static(path.join(__dirname, "../client/src"))); app.use("/api", apiRoutes); app.get("/", function (req, res) { - res.sendFile(path.join(__dirname, "dist", "index.html")); + res.sendFile(path.join(__dirname, "../client/src", "index.html")); }); app.get("*", (req, res) => { - res.sendFile(path.join(__dirname, "../client/dist", "index.html")); + res.sendFile(path.join(__dirname, "../client/src", "index.html")); }); app.listen(port, () => {