Open cthom-dev opened 2 years ago
Hey @cthom-dev, have you managed to get any solution for this problem? I'm facing the same issue with Strapi / Cloudinary
Hey @cthom-dev, have you managed to get any solution for this problem? I'm facing the same issue with Strapi / Cloudinary
Using data.attributes.hash instead of data.attributes.url seems to work
When using Strapi with Cloudinary, when you query Strapi and get back an image entity, you get the full URL to Cloudinary. If I use the following in nuxt.config.js
and then in my component use the following, where property url is Cloudinary absolute URL
<nuxt-img :src="element.icon.data.attributes.url" />
this is then the src value:
https://res.cloudinary.com/xxxxx/image/upload/f_auto,q_auto/https://res.cloudinary.com/xxxxx/image/upload/vxxx/logo.png
The src value is then baseURL + transformations + Cloudinary absolute URL, so I don't get the image.
I can get the following values from Strapi API for image:
Thanks for any help !
package.json