diff --git a/luckychit/web-server.js b/luckychit/web-server.js index e12496b..7bd4311 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.get('/*', (req, res) => { res.sendFile(path.join(BUILD_DIR, 'index.html')); });