diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b769bf..9132f22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,7 @@ jobs: run: yarn build:prefixed env: PUBLIC_URL: /${{ github.head_ref }} + GATSBY_SUBGRAPH_API_KEY: ${{ secrets.SUBGRAPH_API_KEY }} - name: Build if: github.event_name == 'push' @@ -46,7 +47,7 @@ jobs: POSTHOG_HOSTNAME_HTTP: ${{ secrets.MAINNET_POSTHOG_HOSTNAME_HTTP }} GATSBY_GTM_SUPPORT: true GATSBY_GTM_ID: ${{ secrets.GTM_ID }} - SUBGRAPH_API_KEY: ${{ secrets.SUBGRAPH_API_KEY }} + GATSBY_SUBGRAPH_API_KEY: ${{ secrets.SUBGRAPH_API_KEY }} - uses: actions/upload-artifact@v3 with: 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`