Worker Static Assets __redirects

Hi, I want to use Static Assets to host a completely static react SPA that uses tanstack query. To get URLs working I need to configure __redirects with /* /index.html 200. I see on https://developers.cloudflare.com/workers/static-assets/compatibility-matrix/ that __redirects is supported in workers with this community plugin. But that seems to require a WorkerEntrypoint, which I do not have since my site is completely static. I see there are bulk redirect options, but in testing those drop the path, with no option to keep it. Is there any way to set redirects for a static site?
Cloudflare Docs
Workers vs. Pages (compatibility matrix) | Cloudflare Workers docs
Compatibility matrix for asset hosting on Cloudflare Workers and Pages.
1 Reply
srb
srbOP2mo ago
i ended up solving this by just using the createHashHistory option in tanstack - https://tanstack.com/router/v1/docs/framework/react/guide/history-types. posting in case that's useful for other's
Want results from more Discord servers?
Add your server