srb
CDCloudflare Developers
•Created by srb on 10/14/2024 in #workers-help
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?2 replies