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