gatsby-source-custom-api icon indicating copy to clipboard operation
gatsby-source-custom-api copied to clipboard

Add support for source_url for images

Open matt-subroot opened this issue 6 years ago • 2 comments
trafficstars

Or actually, just total custom childkey to specify what the url key is called. I'm pulling data into a Node backend service from Wordpress, and Wordpress' image urls are labeled "source_url". I don't want to use the gatsby-source-wordpress plugin because I want it all to run through a gateway and backend service first as a proxy. Thus, I am stuck using Wordpress' API and data structures, but they don't fit this plugin's url chilldkey structure.

Unless I am misunderstanding how to use the plugin, this seems way too rigid for a wide range of usage as not everyone is in control of the key names for their images.

matt-subroot avatar Jul 28 '19 04:07 matt-subroot

My current workaround is to build a transform class in my service that alters the keys from WP, but would like to be able to pass data without creating transforms everywhere

matt-subroot avatar Jul 28 '19 04:07 matt-subroot

I have the same issue

amcc avatar Apr 16 '20 20:04 amcc