feat: Enhance WebSocket integration and add SPA fallback for routing

This commit is contained in:
2025-12-04 18:06:49 +00:00
parent d32103618f
commit 8df44b99b9
3 changed files with 21 additions and 23 deletions
+4
View File
@@ -8,6 +8,10 @@ export const runCli = async () => {
feedMetadata: null,
domain: 'idp.global',
serveDir: paths.distWebDir,
addCustomRoutes: async (typedserver) => {
// Enable SPA fallback - serves index.html for non-file routes (e.g., /login, /dashboard)
typedserver.options.spaFallback = true;
},
});
// lets add the reception routes