Skip to content

Commit

Permalink
Merge pull request #31 from decentraland/fix/update-old-subgraph-urls
Browse files Browse the repository at this point in the history
fix: Update old subgraph URLs
  • Loading branch information
kevinszuchet authored Nov 6, 2024
2 parents 4e9f395 + 74917fe commit 0a3467d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/config/dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"GATSBY_MARKETPLACE_URL": "https://market.decentraland.org",
"GATSBY_USER_PROFILE_URL": "https://profile.decentraland.zone",
"GATSBY_SHORT_URL": "https://dcl.gg",
"GATSBY_THE_GRAPH_API_ETH_URL": "https://api.thegraph.com/subgraphs/name/decentraland/collections-ethereum-mainnet",
"GATSBY_THE_GRAPH_API_MATIC_URL": "https://api.thegraph.com/subgraphs/name/decentraland/collections-matic-mainnet",
"GATSBY_THE_GRAPH_API_ETH_URL": "https://subgraph.decentraland.zone/collections-ethereum-sepolia",
"GATSBY_THE_GRAPH_API_MATIC_URL": "https://subgraph.decentraland.zone/collections-matic-amoy",
"GATSBY_DECENTRALAND_HOMEPAGE_URL": "https://decentraland.org"
}
4 changes: 2 additions & 2 deletions src/config/local.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"GATSBY_MARKETPLACE_URL": "https://market.decentraland.org",
"GATSBY_USER_PROFILE_URL": "https://profile.decentraland.zone",
"GATSBY_SHORT_URL": "https://dcl.gg",
"GATSBY_THE_GRAPH_API_ETH_URL": "https://api.thegraph.com/subgraphs/name/decentraland/collections-ethereum-mainnet",
"GATSBY_THE_GRAPH_API_MATIC_URL": "https://api.thegraph.com/subgraphs/name/decentraland/collections-matic-mainnet",
"GATSBY_THE_GRAPH_API_ETH_URL": "https://subgraph.decentraland.zone/collections-ethereum-sepolia",
"GATSBY_THE_GRAPH_API_MATIC_URL": "https://subgraph.decentraland.zone/collections-matic-amoy",
"GATSBY_DECENTRALAND_HOMEPAGE_URL": "https://decentraland.org"
}
4 changes: 2 additions & 2 deletions src/config/prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"GATSBY_MARKETPLACE_URL": "https://market.decentraland.org",
"GATSBY_USER_PROFILE_URL": "https://profile.decentraland.org",
"GATSBY_SHORT_URL": "https://dcl.gg",
"GATSBY_THE_GRAPH_API_ETH_URL": "https://api.thegraph.com/subgraphs/name/decentraland/collections-ethereum-mainnet",
"GATSBY_THE_GRAPH_API_MATIC_URL": "https://api.thegraph.com/subgraphs/name/decentraland/collections-matic-mainnet",
"GATSBY_THE_GRAPH_API_ETH_URL": "https://subgraph.decentraland.org/collections-ethereum-mainnet",
"GATSBY_THE_GRAPH_API_MATIC_URL": "https://subgraph.decentraland.org/collections-matic-mainnet",
"GATSBY_DECENTRALAND_HOMEPAGE_URL": "https://decentraland.org"
}
4 changes: 2 additions & 2 deletions src/hooks/useImageById.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { WearableParsedProps, getWearablesList } from "../modules/utils"

const THE_GRAPH_API_ETH_URL =
process.env.GATSBY_THE_GRAPH_API_ETH_URL ||
"https://api.thegraph.com/subgraphs/name/decentraland/collections-ethereum-mainnet"
"https://subgraph.decentraland.org/collections-ethereum-mainnet"
const THE_GRAPH_API_MATIC_URL =
process.env.GATSBY_THE_GRAPH_API_MATIC_URL ||
"https://api.thegraph.com/subgraphs/name/decentraland/collections-matic-mainnet"
"https://subgraph.decentraland.org/collections-matic-mainnet"

export default function useImageById(id: string | undefined) {
return useAsyncMemo(
Expand Down

0 comments on commit 0a3467d

Please sign in to comment.