-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strapi and Cloudinary working with gatsby-transformer-cloudinary #99
Comments
Hi @jdortegar, I know you posted this about a year ago, but I wonder if you found any solutions. I am in the same situation. The docs for this plugin say that it should work with images that are already uploaded to Cloudinary:
Therefore, I believe the problem is that Strapi does not provide those fields to Gatsby via I guess the solution would be to somehow massage the strapi data to include these fields. But I haven't the foggiest idea how! Any ideas from the community would be very much appreciated |
@tylerpaige @jdortegar did you ever figure this out? Tyler - I see your issue and the corresponding PR on If you can spare the moment, I'd be hugely appreciative if you could share a few sentences on what steps you took to get it working. Thanks PS. Good job helping organize and spread the word about CU's tuition issues. |
@MrChrisRodriguez thanks for your kind comment. Absolutely I can share my solution. Basically, I added custom transformer plugins to create new nodes that would have the properties that
I wish I could paste some code, but I've unfortunately lost access to that branch. The Gatsby docs do have a really good tutorial on how to create a transformer plugin though, and that's what I used to write one myself. Basically, the procedure was like this:
At this stage, I had no use for the For me, though, I found that this wasn't nearly as polished as I wanted, so I decided to handle all of my image resizing in a custom component on the front-end. I read the image URL from Strapi, then construct a list of sources myself, and pass them off to At any rate, |
Thanks @tylerpaige -- I'll pass this to my team and will circle back if we make any improvements that could be helpful to you or others! |
The newest beta supports this by letting you configure the mapping of data needed.
Take a look at the documentation and let me know how it goes so I may improve if needed. |
@jdortegar, @MrChrisRodriguez and @tylerpaige have you been able to test the |
Hey Guys! nice job with the plugin!
Unfortunately I can't make this works, I have a CMS with Strapi and Cloudinary as a plugin, when I try to use the
gatsby-transformer-cloudinary, all the Cloudinary existing images are upload again in a cache folder, i wanna try the existing images steps but is not clear to me, could you explain to me a little more how can i do for integrate this!
Thanks in advance @jastuccio @jlengstorf
The text was updated successfully, but these errors were encountered: