diff --git a/src/server/app.ts b/src/server/app.ts index 45534db..91d49e3 100644 --- a/src/server/app.ts +++ b/src/server/app.ts @@ -68,7 +68,7 @@ app.get('/health', (req, res) => { }); // SPA fallback - must be last -app.get('*', (req, res) => { +app.use((req, res, next) => { res.sendFile(path.join(distPath, 'index.html')); });