Skip to content

Commit

Permalink
chore: SUSHI_DATA_API_HOST env
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMasayoshi committed Aug 6, 2024
1 parent ce2729c commit 1909f23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/web/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ ALCHEMY_ID=
NEXT_PUBLIC_INFURA_ID=
INFURA_ID=
DRPC_ID=

SUSHI_DATA_API_HOST=
NEXT_SUSHI_DATA_API_HOST=
5 changes: 4 additions & 1 deletion packages/sushi/src/config/subgraph/hosts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ const DECENTRALIZED_NETWORK_KEY =
export const DECENTRALIZED_HOST_BY_SUBGRAPH_ID = `gateway-arbitrum.network.thegraph.com/api/${DECENTRALIZED_NETWORK_KEY}/subgraphs/id`
export const DECENTRALIZED_HOST_BY_DEPLOYMENT_ID = `gateway-arbitrum.network.thegraph.com/api/${DECENTRALIZED_NETWORK_KEY}/deployments/id`

export const SUSHI_DATA_API_HOST = 'data.sushi.com/graphql'
export const SUSHI_DATA_API_HOST =
process.env['SUSHI_DATA_API_HOST'] ||
process.env['NEXT_PUBLIC_SUSHI_DATA_API_HOST'] ||
'data.sushi.com/graphql'

0 comments on commit 1909f23

Please sign in to comment.