diff --git a/backend/src/app.js b/backend/src/app.js index ae0dcc9..fa4862d 100644 --- a/backend/src/app.js +++ b/backend/src/app.js @@ -75,7 +75,7 @@ const frontendDistPath = path.join(__dirname, '../dist'); app.use(express.static(frontendDistPath)); // 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')); });