When I update the collection image in Shopify, I don't see it update on my website. I'm using gatsby-source-shopify to pull in the data, and I have webhooks enabled for collection create, update, and delete to rebuild my Gatsby site in Netlify.
The proper collection image is showing in my local Gatsby development build, but not in the Netlify production build. I'm using the exact same environment variables in both setups.
Any help is appreciated, and I can provide more information if need be!
The image is making it to the Shopify admin dashboard just fine, but not to my website.
Here is a link to the site, it's a completely custom Gatsby front end, powered by gatsby-source-shopify.
In my admin dashboard, I've uploaded a different image than what is being shown as the collection image (the one with the two black straps and the square Iron Jimmy logo). The collection image should be the same as the "Leather Lifting Straps - 1"" product.
How are you pulling the image data from Shopify? Never used that library so will have limited insights - we can guess our way through.
Is it possible that you had the other image first and you later replaced it with an image of the same name? How that image is fetched is going to be where the problem is. For your own testing, have you been able to output the returned image path data that the library returns from Shopify side? Since my insight into is low, my test would include adding a new image with a different filename just to see if that gives a different result.
Thanks again for the replies.
Here's what I just tried:
1. Delete the old collection completely.
2. Recreate a very similar collection.
3. Wait for the site to rebuild on Netlify.
4. Successfully verified that the collection image was correct.
5. Change the collection image to a differnt image with a different name.
6. Wait for the site to rebuild on Netlify.
7. Unsuccessful verification of the collection image.
Whether in my local development environment or on Netlify, once I change the collection image it never shows up, even after clearing the cache, rebuilding the site, etc.