Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update old subgraph URLs #31

Merged
merged 2 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading