From 74df03691d89231ee246ca065e406ca579d1dc9a Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Sat, 14 Mar 2026 16:12:01 +0000 Subject: [PATCH] fix: express 5 wildcard removed --- src/server/app.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/app.ts b/src/server/app.ts index f4a5a6f..7a2016c 100644 --- a/src/server/app.ts +++ b/src/server/app.ts @@ -75,9 +75,11 @@ app.get('/health', (req, res) => { const clientPath = path.join(process.cwd(), 'dist', 'client'); if (fs.existsSync(clientPath)) { app.use(express.static(clientPath)); - app.get('/:splat*', (req, res) => { + app.use((req, res, next) => { if (!req.path.startsWith('/api') && !req.path.startsWith('/uploads')) { res.sendFile(path.join(clientPath, 'index.html')); + } else { + next(); } }); }