In our application, routes are handled without a server fallback. To make this work, we need all requests to redirect to the root directory, so that index.html is served.
This worked in our preview services (see solution on Vercel and solution on Netlify), but not (yet) in GitHub pages (see thread).