Proper way to fetch the attachment on CDN with GraphQL?
-
My usual experience with CDN plugins like these is that they replace the attachment media URLs automatically, however, it is my experience that this plugin doesn’t.
After activating plugin, syncing and then doing a GraphQL query like this:
query Images { mediaItems { nodes { mediaItemUrl sourceUrl(size: LARGE) srcSet(size: LARGE) } } }
They still point to my own WordPress installation, rather than the CDN. Not sure if this is a functionality with the plugin, or if it works differently?
- The topic ‘Proper way to fetch the attachment on CDN with GraphQL?’ is closed to new replies.