nft-drop icon indicating copy to clipboard operation
nft-drop copied to clipboard

Ability to add custom IPFS gateways to URLParams

Open kien-ngo opened this issue 1 year ago • 6 comments

@avneesh0612 @nachoiacovino We should be able to use the template with custom ipfs gateway as easy as this:

https://nft-template.com/?customIpfsGateways=http://pinata-gw.cloud/ipfs

Encouraging devs to roll their own gateways will benefit both parties since the end users do not have to share the same public gateway with million others and it'll put less stress on thirdweb's ipfs server

kien-ngo avatar Jul 04 '23 21:07 kien-ngo

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
erc721 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 6, 2023 11:01pm
nft-drop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 6, 2023 11:01pm

vercel[bot] avatar Jul 04 '23 21:07 vercel[bot]

Can we have the ability to define the custom IPFS to const file? @kien-ngo

warengonzaga avatar Jul 05 '23 03:07 warengonzaga

@warengonzaga Yes we do have it. I followed the same coding styles from the other contributors. Basically you can set the value as consts like this:

import {
  biconomyApiIdConst,
  biconomyApiKeyConst,
  chainConst,
  customIpfsGateways, // <----- This one right here
  relayerUrlConst,
} from "./consts/parameters";

kien-ngo avatar Jul 05 '23 03:07 kien-ngo

Amazing work @kien-ngo thank you for your contribution, this will help our community!

warengonzaga avatar Jul 05 '23 05:07 warengonzaga

Adding @nachoiacovino and @MananTank here to take a look.

warengonzaga avatar Aug 05 '23 13:08 warengonzaga

Can you take a look at the merge conflicts @kien-ngo

saminacodes avatar Oct 23 '23 20:10 saminacodes