Skip to content

Commit

Permalink
Merge pull request #125 from threshold-network/fix-subgraph-api-key-e…
Browse files Browse the repository at this point in the history
…nv-variable

Add gatsby prefix to subgraph api key env variable

## Description

- [x] [add gatsby prefix to subgraph api key env variable]
(4141a4c)

## Notice

- [x] Have you checked to ensure there aren't other open
[Pull Requests](https://github.com/shapeshift/web/pulls) for the same
update/change?

## Pull Request Type

- [x] Chore Fix

## Testing

Please outline all testing steps
1. Clone the repo - git clone https://github.com/threshold-network/website.git
2. Install dependencies - yarn install
3. Build the app - yarn build
4. Run the app - yarn start
  • Loading branch information
michalsmiarowski committed Jul 5, 2024
2 parents 9214f5c + 4141a4c commit 5758b29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
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`

0 comments on commit 5758b29

Please sign in to comment.