DEV Community

Discussion on: Build an Instagram clone with Strapi and Svelte (PART 4)

Collapse
 
arnu515 profile image
arnu515

I just found a bug that wouldn't let you access images from cloudinary. All you have to do to fix it, is change your img's srcs to:

src={post.image.provider === 'local' ? getContext('apiUrl') + post.image.url : post.image.url}
Enter fullscreen mode Exit fullscreen mode

Checkout the github if you're stuck