#Do Astro Content Collections add the data into static files, when using an Adapter?

3 messages · Page 1 of 1 (latest)

quiet schooner
#

If I have some large content collections, and I use the Astro Cloudflare adapter to server-render certain pages, is it the case that the entire contents of my Collections are bundled into my Workers folder? Is this just how Astro content collections are designed to work?

spiral stratusBOT
#

Hi @quiet schooner. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

The provided knowledge sources only cover how the Cloudflare adapter handles deployment details like headers, assets, redirects, and routing (including _routes.json, _headers, _redirects, and .assetsignore). They do not mention Astro Content Collections at all, nor how their data is bundled or loaded when using the Cloudflare adapter. [Cloudflare platform]

Because of this, I cannot reliably say from these documents whether:

  • Content Collections are fully bundled into the Worker,
  • only the used entries are included per route,
  • or whether there is any special behavior for large collections in Cloudflare deployments.

The knowledge sources simply don’t describe the interaction between Content Collections and adapters, so I can’t confirm whether “this is just how Astro content collections are designed to work” in your scenario.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: