File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,11 @@ const transformURI = (
120120 return uri ;
121121 }
122122
123- // XXX: pass gateway token from env to get images in localhost
124123 if ( uri ?. startsWith ( "ipfs://" ) ) {
125- return `https://teritori.mypinata.cloud/ipfs/${ uri . substring ( "ipfs://" . length ) } ?img-width=${ Math . round ( width ) } &img-height=${ Math . round ( height ) } &img-fit=contain` ;
124+ // FIXME: passing the gateway token here is unsafe and people could rip our cap but the host origin method seems broken atm
125+ const gatewayAccessToken =
126+ "0Ik-SBA6O3xxcvHBRmD526aG06EEwIqwcr14MFfFveyotZmOI4v9gLfJgHW3SRFY" ;
127+ return `https://teritori.mypinata.cloud/ipfs/${ uri . substring ( "ipfs://" . length ) } ?img-width=${ Math . round ( width ) } &img-height=${ Math . round ( height ) } &img-fit=contain&pinataGatewayToken=${ gatewayAccessToken } ` ;
126128 }
127129
128130 const params = resolveParams ( width , height ) ;
You can’t perform that action at this time.
0 commit comments