graysonhicks / gatsby-plugin-remote-images

:floppy_disk: A Gatsby.js plugin for downloading and linking remote images from another node's field for the benefits of gatsby-image.
155 stars 39 forks source link

Attempt Image CDN Support #123

Closed aghreed closed 1 year ago

aghreed commented 1 year ago

All changes are shamelessly copied from @raae 's work in https://github.com/graysonhicks/gatsby-plugin-remote-images/pull/88

Will be testing this out once I get a canary published, and then we can make any needed tweaks.

Update: this is in use on a demo site in Gatsby Cloud: https://gatsbyremoteimagecdndemomain.gatsbyjs.io/


Purpose

Enable Gatsby Cloud ImageCDN support for the plugin.

Testing

I have tested this on a couple of sites and confirmed that:

  1. Images are served from the /__gatsby/ src on the sites
  2. Images are correctly associated with the nodes they should be