Skip to content

Commit

Permalink
fix: revert website gateway to nftstorage.link (#1719)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored Mar 29, 2022
1 parent 3abd007 commit 4f5b06a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/website/pages/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export default function Files({ user }) {
popupContent={'CID has been copied!!'}
>
<a
href={`https://dweb.link/ipfs/${nft.cid}`}
href={`https://nftstorage.link/ipfs/${nft.cid}`}
className="underline black truncate"
target="_blank"
rel="noreferrer"
Expand Down Expand Up @@ -503,7 +503,7 @@ export default function Files({ user }) {
* @param {{cid: string, type?: string}} props
*/
function GatewayLink({ cid, type }) {
const gatewayLink = `https://dweb.link/ipfs/${cid}`
const gatewayLink = `https://nftstorage.link/ipfs/${cid}`
const href = type === 'nft' ? `${gatewayLink}/metadata.json` : gatewayLink
const btnLabel = type === 'nft' ? 'View Metadata' : 'View URL'
const btnTitle = type === 'nft' ? 'View Metadata JSON' : 'View URL'
Expand Down

0 comments on commit 4f5b06a

Please sign in to comment.