Skip to content

Commit

Permalink
fix: test api with safe CID
Browse files Browse the repository at this point in the history
This avoids issues with ipfs/kubo#8230
  • Loading branch information
lidel committed Jul 5, 2021
1 parent 5165ba6 commit ebda764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bundles/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function getURLFromAddress (name, config) {
const checkIfGatewayUrlIsAccessible = memoize(async (url) => {
try {
const { status } = await fetch(
`${url}/ipfs/bafkqaaa`
`${url}/ipfs/bafkqae2xmvwgg33nmuqhi3zajfiemuzahiwss`
)
return status === 200
} catch (e) {
Expand All @@ -125,7 +125,7 @@ const checkIfGatewayUrlIsAccessible = memoize(async (url) => {
const checkIfSubdomainGatewayUrlIsAccessible = memoize(async (url) => {
try {
url = new URL(url)
url.hostname = `bafkqaaa.ipfs.${url.hostname}`
url.hostname = `bafkqae2xmvwgg33nmuqhi3zajfiemuzahiwss.ipfs.${url.hostname}`
const { status } = await fetch(url.toString())
return status === 200
} catch (e) {
Expand Down

0 comments on commit ebda764

Please sign in to comment.