Skip to content
Merged
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 .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# GraphQL Endpoints
NEXT_PUBLIC_GRAPHQL_ENDPOINT=https://mainnet-graphql.polymesh.network
NEXT_PUBLIC_GRAPHQL_ENDPOINT_TESTNET=https://testnet-graphql.polymesh.live
9 changes: 7 additions & 2 deletions src/config/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ export const POLYMESH_DOCS = 'https://developers.polymesh.network/docs/';

// network config nodes
export const POLYMESH_RPC_URL = 'wss://mainnet-rpc.polymesh.network';
export const GRAPHQL_ENDPOINT = 'https://mainnet-graphql.polymesh.network';

export const GRAPHQL_ENDPOINT =
process.env.NEXT_PUBLIC_GRAPHQL_ENDPOINT ||
'https://mainnet-graphql.polymesh.network';
export const SUBSCAN_URL = 'https://polymesh.subscan.io/';

export const POLYMESH_RPC_URL_TESTNET = 'wss://testnet-rpc.polymesh.live';
export const GRAPHQL_ENDPOINT_TESTNET = 'https://testnet-graphql.polymesh.live';
export const GRAPHQL_ENDPOINT_TESTNET =
process.env.NEXT_PUBLIC_GRAPHQL_ENDPOINT_TESTNET ||
'https://testnet-graphql.polymesh.live';
export const SUBSCAN_URL_TESTNET = 'https://polymesh-testnet.subscan.io/';
// export const GRAPHQL_ENDPOINT_TESTNET = 'http://dev.polymesh.tech:3049';

Expand Down