Open vikiival opened 7 months ago
did you mean something like this https://github.com/kodadot/workers/blob/e2a36193709250a11da5c512138737e00b6c1516/image/src/routes/ipfs.ts#L139-L151
but for metadata endpoint?
did you mean something like this
I meant to remove that from R2/ images
query nft {
nftEntityById(id:"0x1b60a7ee6bba284a6aafa1eca0a1f7ea42099373-0") {
name
image
media
metadata
meta {
id
image
animationUrl
}
}
}
{
"data": {
"nftEntityById": {
"name": "Vortices #0",
"image": "https://dyndata.deno.dev/base/image/0x1b60a7ee6bba284a6aafa1eca0a1f7ea42099373/0",
"media": "ipfs://bafybeiexwsrhle2f4gjaptc5b3fm2rfo4ztfy5unsxointkqzyoarbpmsy/?hash=0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d",
"metadata": "https://dyndata.deno.dev/base/content/0x1b60a7ee6bba284a6aafa1eca0a1f7ea42099373/0",
"meta": {
"id": "46b80655772c97c59ac6d5cfd9e16ddb",
"image": "https://dyndata.deno.dev/base/image/0x1b60a7ee6bba284a6aafa1eca0a1f7ea42099373/0",
"animationUrl": "ipfs://bafybeiexwsrhle2f4gjaptc5b3fm2rfo4ztfy5unsxointkqzyoarbpmsy/?hash=0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d"
}
}
}
}
I expect to get this
And I have this
eehh I accidentally commit it to the main branch https://github.com/kodadot/workers/commits/main/
We need to secure the main branch, I guess
We need to secure the main branch, I guess
https://deploy-preview-10015--koda-canary.netlify.app/base/gallery/0x1b60a7ee6bba284a6aafa1eca0a1f7ea42099373-0
Thanks!
Ref: