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•7mo ago
Same issue here, any fix?
ambitious-aqua•7mo 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