fix: express 5 routing wildcard error for SPA fallback
Build and Deploy Chitfund / build-frontend (push) Waiting to run Details
Build and Deploy Chitfund / build-backend (push) Has been cancelled Details

This commit is contained in:
deepkoluguri 2026-05-12 03:20:32 +00:00
parent f71151d19c
commit 9e24cba3b9
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ app.use(express.static(BUILD_DIR, {
// Handle Flutter routes (SPA - Single Page Application)
// Any route not found as a static file should serve index.html
app.get('*', (req, res) => {
app.get('/*', (req, res) => {
res.sendFile(path.join(BUILD_DIR, 'index.html'));
});