QuiltMC / quiltmc.org

The source for quiltmc.org
https://quiltmc.org
Other
58 stars 48 forks source link

Copy images locally #108

Closed Akarys42 closed 10 months ago

Akarys42 commented 1 year ago

This optimizes the image-heavy pages by copying the images into our CDN at build time to deliver those faster.

We can apply that change to more pages before merging.


See preview on Cloudflare Pages: https://preview-108.quiltmc-org.pages.dev

netlify[bot] commented 1 year ago

Deploy Preview for ecstatic-booth-88897a failed.

Name Link
Latest commit a7616c62869be76fa6b5e84e34daf05d0301f1f9
Latest deploy log https://app.netlify.com/sites/ecstatic-booth-88897a/deploys/63ea09f22937ac0008b18e28
cloudflare-workers-and-pages[bot] commented 1 year ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: a7616c6
Status: ✅  Deploy successful!
Preview URL: https://d77fb6d7.quiltmc-org.pages.dev
Branch Preview URL: https://copy-images-locally.quiltmc-org.pages.dev

View logs

pluiedev commented 1 year ago

Also, we should probably use a custom component for all images if we were to extend this to other pages, something akin to:

{ /* automatically translated */ }
<Img src="raw_path.png" alt="something something" />