-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: Use cdn for NFT images #2894
Conversation
jorbuedo
commented
Nov 9, 2023
•
edited
Loading
edited
Waiting for resize method to be added to the cdn |
Latest commit untested (preprod db is down) |
queryKey: ['native-asset-img', policy, name, `${width}x${height}`, resizeMode], | ||
queryFn: async () => { | ||
const response = await fetch( | ||
`https://${network}.cardano-nativeassets-prod.emurgornd.com/${policy}/${name}?width=${width}&height=${height}&kind=${kind}&fit=${resizeMode}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO:
- Move to the wallet api interface
.getTokenImage
@stackchain Ready to merge from my side |
I think on FE is done, still some images are not going through the CDN, holding for a bit while BE figures it out. |