Skip to content

Commit

Permalink
Replace cloudflare with ipfs.io
Browse files Browse the repository at this point in the history
  • Loading branch information
solimander committed Apr 11, 2024
1 parent 791014f commit 8672138
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const CreateNewHouse = () => {
loading
? '/manager/loading.gif'
: round.house.image
? round.house.image.replace(/prophouse.mypinata.cloud/g, 'cloudflare-ipfs.com')
? round.house.image.replace(/prophouse.mypinata.cloud/g, 'ipfs.io')
: '/manager/newImage.png'
}
alt="houseImage"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const RoundCard: React.FC<{
address={house.address}
imgSrc={house.imageURI?.replace(
/prophouse.mypinata.cloud/g,
'cloudflare-ipfs.com',
'ipfs.io',
)}
addAvatar={true}
className={classes.roundCreator}
Expand Down
2 changes: 1 addition & 1 deletion packages/prop-house-webapp/src/utils/buildImageURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @param ipfsURI The IPFS hash
* @returns formatted URL
*/
export const buildImageURL = (ipfsURI: string | undefined, gateway = 'cloudflare-ipfs.com'): string | undefined => {
export const buildImageURL = (ipfsURI: string | undefined, gateway = 'ipfs.io'): string | undefined => {
if (!ipfsURI) return;

if (ipfsURI.startsWith('ipfs://')) {
Expand Down

0 comments on commit 8672138

Please sign in to comment.