Need help – React (Vite) frontend shows blank page when served by FastAPI

I built a small Inventory + POS project using FastAPI + React (Vite) + Docker.

The frontend builds successfully and the files exist inside the container, but the browser shows a completely white page. The JS file seems to not load correctly (possible StaticFiles / SPA routing issue).

Repo: https://github.com/bundlab/inventory-pos-LITE

I’ve already tried multiple approaches (different SPA fallbacks, removing volumes, clean rebuilds, etc.).

Any guidance would be highly appreciated. Thanks!

Posted Sep 11, 2026, 3:21 PM UTC

10
Loading comments…