Skip to content

Commit

Permalink
Merge pull request #310 from kodadot/feat/image/w3s
Browse files Browse the repository at this point in the history
feat/image/w3s
  • Loading branch information
vikiival authored Jun 20, 2024
2 parents f5f19d3 + 2947874 commit 673bfe3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/image/src/routes/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ app.get('/*', async (c) => {
// 4. upload object to r2
// ----------------------------------------
console.log('step 4', url.toString())
const ipfsNftstorage = toIpfsGw(url.toString(), 'nftstorage')
const ipfsNftstorage = toIpfsGw(url.toString(), 'w3s')
console.log('ipfsNftstorage', ipfsNftstorage)
const status = await fetchIPFS({
path: fullPath,
Expand Down
4 changes: 2 additions & 2 deletions services/image/src/utils/ipfs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
$purify,
$purifyOne,
ipfsProviders,
type HTTPS_URI,
type IPFSProviders,
Expand All @@ -20,7 +20,7 @@ export function ipfsUrl(ipfs?: string) {
}

// TODO: 'kodadot_beta' for beta, 'kodadot' for prod
return $purify(ipfs, ['kodadot_beta'])[0]
return $purifyOne(ipfs, 'kodadot_beta')
}

async function resolveGateway({ path = '', gateway = ipfsProviders.ipfs }) {
Expand Down

0 comments on commit 673bfe3

Please sign in to comment.