cloudinary-community / gatsby-transformer-cloudinary

Use Cloudinary images with gatsby-image for high performance and total control!
https://gatsby-transformer-cloudinary.netlify.app/
MIT License
69 stars 28 forks source link

`gatsbyImageData` generates `http` urls, not `https` #209

Closed raae closed 1 year ago

raae commented 1 year ago

Discussed in https://github.com/cloudinary-devs/gatsby-transformer-cloudinary/discussions/208

Originally posted by **owaaquino** November 29, 2022 Currently, I've tried using the gatsby-transformer-cloudinary on my project. Somehow I'm getting an `http` url for my images instead of `https` this makes an issue in my production `blocked:mixedcontent`. Is there any other setup I need to do to make sure I'm getting an `https` for my images? This is my graphql query looks like. ``` const data = useStaticQuery(graphql` query { cloudinaryAsset(publicId: { eq: "gatsby-cloudinary/event" }) { fluid { ...CloudinaryAssetFluid } gatsbyImageData(placeholder: BLURRED) } } `) ``` Then following the plugin documenationtion ``` const image = getImage(data.cloudinaryAsset) ``` When I `console.log` this it returns as `http` Screen Shot 2022-11-30 at 5 42 58 AM I already tried changing my Allowed fetch domains settings in Cloudinary but no luck. Hope the team can help, as I'm been stuck on this and I wanted to use my cloudinary images.
github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 3.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 4.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: