fix: use middleware instead of get for SPA fallback
This commit is contained in:
@@ -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'));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user