about summary refs log tree commit diff
path: root/src/state/queries/service.ts
diff options
context:
space:
mode:
authorhailey <hailey@blueskyweb.xyz>2025-08-26 17:13:11 -0700
committerGitHub <noreply@github.com>2025-08-26 17:13:11 -0700
commita1ed59e0eeb03d1f587512a1e567ebc298d71b38 (patch)
tree4c0beabb5682153bb9fbf1e3b682201ddfcdb6ca /src/state/queries/service.ts
parent39c6984c6edabcb432ef884e7d3b12ae51a2c09e (diff)
downloadvoidsky-a1ed59e0eeb03d1f587512a1e567ebc298d71b38.tar.zst
use an env var for configurable proxy header (#8863)
Diffstat (limited to 'src/state/queries/service.ts')
-rw-r--r--src/state/queries/service.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/state/queries/service.ts b/src/state/queries/service.ts
index 6bfd0b011..e9661db9e 100644
--- a/src/state/queries/service.ts
+++ b/src/state/queries/service.ts
@@ -1,6 +1,7 @@
-import {BskyAgent} from '@atproto/api'
 import {useQuery} from '@tanstack/react-query'
 
+import {Agent} from '../session/agent'
+
 const RQKEY_ROOT = 'service'
 export const RQKEY = (serviceUrl: string) => [RQKEY_ROOT, serviceUrl]
 
@@ -8,7 +9,7 @@ export function useServiceQuery(serviceUrl: string) {
   return useQuery({
     queryKey: RQKEY(serviceUrl),
     queryFn: async () => {
-      const agent = new BskyAgent({service: serviceUrl})
+      const agent = new Agent(null, {service: serviceUrl})
       const res = await agent.com.atproto.server.describeServer()
       return res.data
     },