Hi everyone,
I recently migrated a Vite + React Router app from Vercel to Fly.io, and I’m running into an issue with routing.
Issue
On Vercel, I was using the following rewrite rule in vercel.json to ensure that all routes were handled correctly by React Router:
{
"rewrites": [
{
"source": "/(.*)",
"destination": "/"
}
]
}
This ensured that my React app always served index.html, allowing client-side routing to work properly.
Question: Is there a built-in way to handle React Router client-side routing in Fly.io?