Skip to content

Commit 1d3c341

Browse files
fix: correct route definition for SPA support in server.js
1 parent ea02b51 commit 1d3c341

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/App/server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ app.use('/api', createProxyMiddleware({
5656
app.use(express.static(path.join(__dirname, 'static')));
5757

5858
// Serve index.html for all other routes (SPA support)
59-
app.get('{*path}', (req, res) => {
59+
app.get('/{*path}', (req, res) => {
6060
res.sendFile(path.join(__dirname, 'static', 'index.html'));
6161
});
6262

0 commit comments

Comments
 (0)