minor changes
This commit is contained in:
1 parent
7ff476882e
commit
d7408d3f41
1 file changed
+1
-1
+1
-1
@@ -75,7 +75,7 @@ const frontendDistPath = path.join(__dirname, '../dist');
|
|||||||
app.use(express.static(frontendDistPath));
|
app.use(express.static(frontendDistPath));
|
||||||
|
|
||||||
// Any GET request that didn't match an API route above gets served index.html
|
// Any GET request that didn't match an API route above gets served index.html
|
||||||
app.get('*', (req, res) => {
|
app.get(/(.*)/, (req, res) => {
|
||||||
res.sendFile(path.join(frontendDistPath, 'index.html'));
|
res.sendFile(path.join(frontendDistPath, 'index.html'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user