Skip to content

Commit

Permalink
Use GATSBY prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsmiarowski committed Jul 5, 2024
1 parent 99caf19 commit 424d390
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
run: yarn build:prefixed
env:
PUBLIC_URL: /${{ github.head_ref }}
SUBGRAPH_API_KEY: ${{ secrets.SUBGRAPH_API_KEY }}
GATSBY_GTM_SUPPORT: false
GATSBY_GTM_ID: ${{ secrets.GTM_ID }}
GATSBY_SUBGRAPH_API_KEY: ${{ secrets.SUBGRAPH_API_KEY }}

- name: Build
if: github.event_name == 'push'
Expand Down
2 changes: 1 addition & 1 deletion src/config/subgraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export const T_NETWORK_SUBGRAPH_URL =
export const T_NETWORK_SUBGRAPH_ID =
"5TJAMbsRwm1avUTV4CofaLT4apfQoAiNcysEit9BWr6R"

export const TBTC_SUBGRAPH_URL = `https://gateway-arbitrum.network.thegraph.com/api/${process.env.SUBGRAPH_API_KEY}/subgraphs/id/DETCX5Xm6tJfctRcZAxhQB9q3aK8P4BXLbujHmzEBXYV`
export const TBTC_SUBGRAPH_URL = `https://gateway-arbitrum.network.thegraph.com/api/${process.env.GATSBY_SUBGRAPH_API_KEY}/subgraphs/id/DETCX5Xm6tJfctRcZAxhQB9q3aK8P4BXLbujHmzEBXYV`
4 changes: 2 additions & 2 deletions src/templates/home-page/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Hero: FC<{
}> = ({ title, body, ctaButtons, image }) => {
const env = process.env
const subgraphApiKey = env.SUBGRAPH_API_KEY
const tbtcSubgraphUrl = `https://gateway-arbitrum.network.thegraph.com/api/${process.env.SUBGRAPH_API_KEY}/subgraphs/id/DETCX5Xm6tJfctRcZAxhQB9q3aK8P4BXLbujHmzEBXYV`
const tbtcSubgraphUrl = `https://gateway-arbitrum.network.thegraph.com/api/${process.env.GATSBY_SUBGRAPH_API_KEY}/subgraphs/id/DETCX5Xm6tJfctRcZAxhQB9q3aK8P4BXLbujHmzEBXYV`
const {
isFetching: isTotalStakedFetching,
data: totalStakedData,
Expand All @@ -52,7 +52,7 @@ const Hero: FC<{
const { isFetching, data, error } = useQuery<{
tbtctoken: { currentTokenHolders: string; totalSupply: string }
}>(
tbtcSubgraphUrl,
TBTC_SUBGRAPH_URL,
gql`
query {
tbtctoken(id: "TBTCToken") {
Expand Down

0 comments on commit 424d390

Please sign in to comment.