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

[Do not merge] Test env variables on preview #124

Closed
wants to merge 7 commits into from
Closed
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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
run: yarn build:prefixed
env:
PUBLIC_URL: /${{ github.head_ref }}
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`
3 changes: 3 additions & 0 deletions src/templates/home-page/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ const Hero: FC<{
ctaButtons: any
image: ImageProps
}> = ({ 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.GATSBY_SUBGRAPH_API_KEY}/subgraphs/id/DETCX5Xm6tJfctRcZAxhQB9q3aK8P4BXLbujHmzEBXYV`
const {
isFetching: isTotalStakedFetching,
data: totalStakedData,
Expand Down
Loading