From 996a37bc7ea5bba020ddab5fe737ee70c62d076c Mon Sep 17 00:00:00 2001 From: deepkoluguri Date: Tue, 12 May 2026 03:20:44 +0000 Subject: [PATCH] fix: use app.use() for SPA fallback instead of Express 5 incompatible wildcards --- luckychit/web-server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luckychit/web-server.js b/luckychit/web-server.js index 7bd4311..d0f2499 100644 --- a/luckychit/web-server.js +++ b/luckychit/web-server.js @@ -47,7 +47,7 @@ app.use(express.static(BUILD_DIR, { // Handle Flutter routes (SPA - Single Page Application) // Any route not found as a static file should serve index.html -app.get('/*', (req, res) => { +app.use( (req, res) => { res.sendFile(path.join(BUILD_DIR, 'index.html')); });