fix: use app.use() for SPA fallback instead of Express 5 incompatible wildcards
Build and Deploy Chitfund / build-backend (push) Successful in 1m31s Details
Build and Deploy Chitfund / build-frontend (push) Successful in 6m42s Details

This commit is contained in:
deepkoluguri 2026-05-12 03:20:44 +00:00
parent 9e24cba3b9
commit 996a37bc7e
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.use( (req, res) => {
res.sendFile(path.join(BUILD_DIR, 'index.html'));
});