Hi, just deployed my app:
- Vite
- React
- React router
My app is client based and utilizes routes to show inner parts of an app myapp.dev/book/page/id
Its working fine on dev, but there is strange behavior on fly.io:
It is working fine, when i went to the root myapp.dev
, then its automatically redirects to /book
(this is by design of my app) and also it’s working fine when during app usage i go to /pages
but if i reload an app being in nested route, i get nginx error “not found”. So to “reset an app” i should manually type myapp.dev
.
Anyone know why is this happening and what settings i should tune?