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')); });