Closed bluwy closed 1 year ago
This looks awesome! I think it would be a massive win to serve assets from a CDN for larger projects using Astro.
The only thing I would add is perhaps some sort of section that outlines a checklist of all major CDNs that will be tested to ensure they work with this newly purposed feature.
Tested with Cloudflare and it seems to work: https://github.com/bluwy/astro-cdn-test and https://bluwy.github.io/astro-cdn-test/. The core workings is the same so I'd expect it to work in other platforms too as long as the links are correct.
This RFC adds CDN support through the
build.assetsPrefix
option. Allowing sites to fetch all assets from an external CDN.Links