We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 338442f commit 4f183a1Copy full SHA for 4f183a1
1 file changed
src/app/frontend-server/server.js
@@ -22,7 +22,7 @@ app.use('/api', createProxyMiddleware({
22
target: BACKEND_URL,
23
changeOrigin: true,
24
pathRewrite: {
25
- '^/api': '/api'
+ '^/': '/api/'
26
},
27
agent: httpAgent,
28
// Increase timeout for long-running requests (10 minutes)
@@ -56,7 +56,7 @@ app.use('/api', createProxyMiddleware({
56
app.use(express.static(path.join(__dirname, 'static')));
57
58
// Serve index.html for all other routes (SPA support)
59
-app.get('*', (req, res) => {
+app.get('{*path}', (req, res) => {
60
res.sendFile(path.join(__dirname, 'static', 'index.html'));
61
});
62
0 commit comments