T
TanStack5d ago
genetic-orange

How to fetch data at build time for static deployment on Cloudflare Workers?

I’m using TanStack Start and deploying my site to Cloudflare Workers. I want to fetch some data at build time so it becomes static in the deployed site. From what I can tell, Static Server Functions won’t work in the Cloudflare Workers environment. Is there a recommended way to fetch data during the build step and have it baked into the static output when deploying? Basically: - I want the data to be part of the built site, not fetched at runtime. - I’m deploying to Cloudflare Workers, so I can’t rely on server-side execution. Any advice or best practices for handling this use case in TanStack Start?
1 Reply
fascinating-indigo
fascinating-indigo5d ago
we are working on making prerendering available for cloudflare. stay tuned

Did you find this page helpful?