Im onto my own NFT project, and now Im about to set the BaseURI. The actual json file will be linked in the future.
Even though its only one token which will be minted by the SmartContract, I created an own folder for this token. Now that I have the CID I dont know how to set it as an BaseURI.
Should I set it with a gateway:
baseURI = https://ipfs.io/ipfs/CID
Should I set it only with the IPFS-protocol:
baseURI = ipfs://CID
Or should I just set the CID and do the linking in the front-end:
baseURI = CID
Also the tokenURI function computes the URI by concatenating the baseURI with the tokenID:
URI = baseURI + tokenID
The problem with that is, that I need a "/" between the baseURI and the tokenID.
Should I add the slash to the baseURI or is there another best practice.
And how do I add the ".json" suffix.
There is also the possibility of setting the CID of the token directly as baseURI, what do you think about that?
Im happy about every help