From 1669af1e91dccfd8068c63a1e17b9fc8a387cf14 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 5 Mar 2026 23:39:35 +0100 Subject: [PATCH] fix: use Express 5 compatible catch-all route syntax Change SPA fallback from app.get('*') to app.get('/{*splat}') as Express 5 uses path-to-regexp v8+ which requires named splat. Co-Authored-By: Claude Opus 4.6 --- server/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/index.ts b/server/src/index.ts index cd78f9b..da21fcc 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -100,7 +100,8 @@ async function boot(): Promise { } // SPA Fallback (MUST be after plugin routes) - app.get('*', (_req, res) => { + // Express 5 uses path-to-regexp v8+ which requires named splat syntax + app.get('/{*splat}', (_req, res) => { res.sendFile(path.join(import.meta.dirname ?? __dirname, '..', '..', 'web', 'dist', 'index.html')); });