T
TanStack8mo ago
extended-salmon

Client side routing 404 error on refresh.

I just deployed a react app using tanstack router to fly.io. When I access the delployed app it gives me a nginx 404 error after refreshing or after moving to another page. Is there a way to bypass this ?
2 Replies
continuing-cyan
continuing-cyan7mo ago
Same issue here, any fix?
ambitious-aqua
ambitious-aqua7mo ago
It's probably related to this - https://fly.io/docs/reference/configuration/#caveats Generally when serving SPA apps, you need a rewrite to direct the server to send it to your index.html
Fly
App configuration (fly.toml)
Documentation and guides from the team at Fly.io.

Did you find this page helpful?