Localhost gets added to URL with cloudinary-react
Hi all,
I get a json object back with all my images and following a post (which I can't find now) I'm using cloudinary components to get my images.
My images however, returns a 400 and I noticed that the URL to the images include "http://localhost"
This is what the URL end up as
https://res.cloudinary.com/<my_cloudname>/image/fetch/f_auto/http://localhost:3000/teknikin/SC-3
My react script:
<CloudinaryContext cloudName="<my_cloudname>">
{images.map((image, i) =>
<Image key={i} publicId={image.public_id} type="fetch">
<Transformation fetchFormat="auto" />
</Image>
)}
</CloudinaryContext>
Can anyone see any mistakes I'm making or perhaps give me some insight on why this is happening?
Thanks
0
-
As usual I manage to fix it right after asking for help.
If this gets approved by the mods. The problem was that I set the type as "fetch" and when I changed it to "upload" my URL's were fine and images loaded.
0
Post is closed for comments.
Comments
1 comment