T
TanStack10mo ago
quickest-silver

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
conscious-sapphire
conscious-sapphire10mo ago
Same issue here, any fix?
vicious-gold
vicious-gold10mo 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?