简体   繁体   English

NFT 市场图像无法检索

[英]NFT marketplace images not retrieving

I am building an NFT marketplace using Thirdweb as the provider.我正在使用 Thirdweb 作为提供者来构建 NFT 市场。

When I deploy my site locally the images for the NFTs show up perfectly but for some reason when I deploy my website with Netlify the images are not showing up.当我在本地部署我的网站时,NFT 的图像完美显示,但由于某种原因,当我使用 Netlify 部署我的网站时,图像没有显示。

Any clues, hints or leads are greatly appreciated.非常感谢任何线索、提示或线索。 If I get an idea of why then I can usually figure out the rest.如果我知道为什么,那么我通常可以找出 rest。

If there is a certain section of code you would like me to post just say the word and I will post a screenshot.如果您希望我发布某段代码,只需说出这个词,我将发布屏幕截图。 I will be checking this post regularly.我会定期检查这篇文章。 Thank you to any kind souls who help me in this time of need感谢任何在我需要帮助的时候帮助我的好心人

Not being able to render the images points to a problem hitting the ipfs gateway which serves up the media files that have been pinned to ipfs.无法渲染图像表明 ipfs 网关出现问题,该网关提供已固定到 ipfs 的媒体文件。 To confirm this you might want to try and hit the URL directly.要确认这一点,您可能想尝试直接点击 URL。 In the case of thirdweb if you are using the thirdweb SDK the gateway would be "https://gateway.ipfscdn.io/ipfs/..."对于thirdweb,如果您使用的是thirdweb SDK,网关将是“https://gateway.ipfscdn.io/ipfs/...”

Here is an example URI https://gateway.ipfscdn.io/ipfs/QmS9jCGH6Fnc8rQLcA6kZK5i2CCukyN4DSXhZGcDg5xpQd/0.png that you can confirm if it renders.这是一个示例 URI https://gateway.ipfscdn.io/ipfs/QmS9jCGH6Fnc8rQLcA6kZK5i2CCukyN4DSXhZGcDg5xpQd/0.png您可以确认它是否呈现。

My suspicion is that there is something in your deployment config that needs to be tweaked to open up that link我怀疑您的部署配置中有一些东西需要调整才能打开该链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM