Skip to content

Commit 2cafcea

Browse files
author
twilson63
committed
impr: changed graphql to ao specific
1 parent 92ff207 commit 2cafcea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/services/dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (argv['dev']) {
1414
console.log('MU', process.env.MU_URL)
1515
console.log('SCHEDULER', process.env.SCHEDULER)
1616
} else {
17-
process.env.GATEWAY_URL ||= 'https://arweave.net'
17+
process.env.GATEWAY_URL ||= 'https://ao-search-gateway.goldsky.com'
1818
process.env.CU_URL ||= 'https://cu.ao-testnet.xyz'
1919
process.env.MU_URL ||= 'https://mu.ao-testnet.xyz'
2020
}

src/services/gql.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function gql(query, variables) {
1717
}
1818

1919
const ARWEAVE_GRAPHQL = process.env.ARWEAVE_GRAPHQL || (
20-
process.env.GATEWAY_URL ? new URL('/graphql', process.env.GATEWAY_URL) : 'https://arweave.net/graphql'
20+
process.env.GATEWAY_URL ? new URL('/graphql', process.env.GATEWAY_URL) : 'https://ao-search-gateway.goldsky.com'
2121
)
2222
function queryArweave(body) {
2323
return fromPromise(() => fetch(ARWEAVE_GRAPHQL, {
@@ -44,4 +44,4 @@ function queryArweave(body) {
4444

4545

4646
)()
47-
}
47+
}

0 commit comments

Comments
 (0)