Hi Moralis!
Iām able to successfully fetch image files based on their URLs in my app (NEXTjs), however, in production, itās not able to fetch the right URL. Itās a bit strange b/c all of the text/strings import directly.
what iām doing in the front-end is, within an Image tag, src={item.attributes.icon.url()}
ā meaning thereās a class and the object has an icon
property for a fileā¦and the url()
or the _url
is the unique link to the file in the Moralis database.
Could you help me understand how to fetch media files to the front-end? It shows in my localhost, but as soon as itās live on the URL, the image canāt be visualized.
Any help would be greatly appreciated!
Thanks!