From d2d324e15159e1233fd0e7048ad345eb814b3b19 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Sat, 13 Apr 2024 13:39:26 -0500 Subject: [PATCH] Add public service constant, use --- src/lib/constants.ts | 1 + src/state/queries/index.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index bb49387c4c..e89e8f0279 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -4,6 +4,7 @@ export const LOCAL_DEV_SERVICE = Platform.OS === 'android' ? 'http://10.0.2.2:2583' : 'http://localhost:2583' export const STAGING_SERVICE = 'https://staging.bsky.dev' export const BSKY_SERVICE = 'https://bsky.social' +export const PUBLIC_BSKY_SERVICE = 'https://public.api.bsky.app' export const DEFAULT_SERVICE = BSKY_SERVICE const HELP_DESK_LANG = 'en-us' export const HELP_DESK_URL = `https://blueskyweb.zendesk.com/hc/${HELP_DESK_LANG}` diff --git a/src/state/queries/index.ts b/src/state/queries/index.ts index e7c5f577b7..e30528ca13 100644 --- a/src/state/queries/index.ts +++ b/src/state/queries/index.ts @@ -1,7 +1,9 @@ import {BskyAgent} from '@atproto/api' +import {PUBLIC_BSKY_SERVICE} from '#/lib/constants' + export const PUBLIC_BSKY_AGENT = new BskyAgent({ - service: 'https://public.api.bsky.app', + service: PUBLIC_BSKY_SERVICE, }) export const STALE = {