diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26c08ad..476f3fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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' diff --git a/src/config/subgraph.ts b/src/config/subgraph.ts index cca1849..d9de6e0 100644 --- a/src/config/subgraph.ts +++ b/src/config/subgraph.ts @@ -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` diff --git a/src/templates/home-page/Hero/index.tsx b/src/templates/home-page/Hero/index.tsx index 2719db7..67591dd 100644 --- a/src/templates/home-page/Hero/index.tsx +++ b/src/templates/home-page/Hero/index.tsx @@ -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, @@ -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") {