Update IPFS Gateway (#1325)

* change ipfs gateway

* change env name for ipfs link pattern
This commit is contained in:
dan13ram
2022-08-11 00:18:45 +05:30
committed by luxumbra
parent b9d6cea7b2
commit da37e1854d

View File

@@ -22,6 +22,6 @@ export const {
NEXT_PUBLIC_IMGIX_DOMAIN: IMGIX_DOMAIN = 'metafam.imgix.net',
} = process.env;
export const IPFS_LINK_PATTERN =
process.env.IPFS_LINK_PATTERN ||
'https://ipfs.infura.io/ipfs/{cid}/{path}' ||
process.env.NEXT_PUBLIC_IPFS_LINK_PATTERN ||
'https://gateway.ipfs.io/ipfs/{cid}/{path}' ||
'https://{v1cid}.ipfs.dweb.link/{path}';