© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•16mo ago•
1 reply
srb

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
__redirects
with
/*    /index.html   200
/*    /index.html   200
.

I see on https://developers.cloudflare.com/workers/static-assets/compatibility-matrix/ that
__redirects
__redirects
is supported in workers with this community plugin. But that seems to require a
WorkerEntrypoint
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.
Workers vs. Pages (compatibility matrix) | Cloudflare Workers docs
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

worker static assets
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
14mo ago
Worker w static assets - Too many 301 redirects (ERR_TOO_MANY_REDIRECTS)
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
13mo ago
console.log Errors When Using Worker Static Assets
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
11mo ago
bundling static assets
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
9mo ago