Skip to content

Commit 40d3291

Browse files
committed
switching from cloudflare to pinata
1 parent 6154fc3 commit 40d3291

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dashboard/src/components/rmrk/Gallery/GalleryItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default class GalleryItem extends Vue {
166166
this.nft = {
167167
...nft,
168168
image: sanitizeIpfsUrl(nft.image || ''),
169-
animation_url: sanitizeIpfsUrl(nft.animation_url || '', 'dweb')
169+
animation_url: sanitizeIpfsUrl(nft.animation_url || '', 'pinata')
170170
};
171171
if (this.nft.animation_url) {
172172
const { headers } = await api.head(this.nft.animation_url);

dashboard/src/components/rmrk/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const ipfsProviders: Record<string, string> = {
2020
cloudflare: 'https://cloudflare-ipfs.com/',
2121
ipfs: DEFAULT_IPFS_PROVIDER,
2222
dweb: 'https://dweb.link/',
23-
'': 'https://cloudflare-ipfs.com/'
23+
'': 'https://gateway.pinata.cloud/'
2424
}
2525

2626
const resolveProvider = (key?: string) => ipfsProviders[key || '']

dashboard/src/icons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
faQuestion, faPrint,
2626
faMagic, faEye, faCommentAlt,
2727
faGhost, faCode, faLeaf,
28-
faFlask, faCameraRetro
28+
faFlask, faCameraRetro,
2929
} from '@fortawesome/free-solid-svg-icons';
3030

3131
// throws error, idk why

0 commit comments

Comments
 (0)