RedditPP Mascot

RedditPP

r/webdev • … • u/Dave_Tribbiani

Assets for 1000+ dynamic pages - local build or external storage?

I'm building an Astro site that generates 1000+ dynamic pages from a single index.astro. I'm wondering about the most efficient way to handle assets used across these pages:

1. Include assets in the Astro build 2. Store assets externally (e.g., Cloudflare R2) and reference them

My main concerns:

* Will Astro duplicate assets for each page or optimize/cache them? * Performance implications of built-in vs. externally stored assets at this scale?

Any insights on the best approach for this scenario? Thanks!

— 0