fix: use middleware instead of get for SPA fallback

This commit is contained in:
2026-03-31 13:07:34 +00:00
parent 13ab7d3c56
commit f9a07cddff

View File

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