Remote Image Download on createNode? #29276
Unanswered
davidbiller
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a DynamoDB table with entries of products.
These products have images which are located on a S3.
{name: "Shirt", image: "https://...."}
So its an Ecommerce app. So I guess 99% of the images on the page, would be product images.
Now the advantage of Gatsby is that it also has Gatsby-image. So I would like to use that.
With an onCreateNode I currently go through the product node.
There I get node.data
So I get now also in the product node a "fields" with all local images.
But of course I need them in the single products?! i.e. in node.data[0]...
Is that possible? How else can I solve this?
Beta Was this translation helpful? Give feedback.
All reactions