build1 publisher
FastAPI's frontend() helper matches SPA fallback only after every API route fails
A dev.to engineer ran three FastAPI apps against the same dist directory and found that a catch-all declared above /api/ping answers 200 with index.html, while the new frontend() helper answered correctly from the wrong position.
Publishers:dev.to
Reality
- Evidence74
- Adoption24
- Hype gap−8
- Incentives22
- Confidence67