Skip to content
Open
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
5 changes: 4 additions & 1 deletion lens-widgets-react/src/graphql/client.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { createClient } from 'urql'

const network: 'polygon' | 'mumbai' = 'polygon';

const API_URL = 'https://api-v2.lens.dev'
const TESTNET_API_URL = 'https://api-v2-mumbai-live.lens.dev'

/* creates the API client */
export const client = createClient({
url: API_URL
url: network == 'mainnet' ? API_URL : TESTNET_API_URL,
})