fix: update Express wildcard route for path-to-regexp v8 compatibility
This commit is contained in:
parent
5195901f01
commit
10ed6a395a
|
|
@ -54,7 +54,7 @@ app.post('/api/chat/stream', async (req, res) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
// SPA fallback - all other routes serve index.html
|
// SPA fallback - all other routes serve index.html
|
||||||
app.get('*', (req, res) => {
|
app.get('/*', (req, res) => {
|
||||||
res.sendFile(path.join(__dirname, 'dist', 'index.html'));
|
res.sendFile(path.join(__dirname, 'dist', 'index.html'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue