From ecca94e5cb89647bafc3cea2b16edee814b3d1b5 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 7 May 2026 16:54:08 -0500 Subject: [PATCH] Use link proxy staging in local dev --- src/lib/constants.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 7a5b74843b..80e697ace2 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -2,7 +2,7 @@ import {type Insets, Platform} from 'react-native' import {type AppBskyActorDefs, BSKY_LABELER_DID} from '@atproto/api' import {type ProxyHeaderValue} from '#/state/session/agent' -import {BLUESKY_PROXY_DID, CHAT_PROXY_DID} from '#/env' +import {BLUESKY_PROXY_DID, CHAT_PROXY_DID, IS_DEV} from '#/env' export const LOCAL_DEV_SERVICE = Platform.OS === 'android' ? 'http://10.0.2.2:2583' : 'http://localhost:2583' @@ -107,12 +107,12 @@ export const STAGING_LINK_META_PROXY = export const PROD_LINK_META_PROXY = 'https://cardyb.bsky.app/v1/extract?url=' -export function LINK_META_PROXY(serviceUrl: string) { - if (IS_PROD_SERVICE(serviceUrl)) { - return PROD_LINK_META_PROXY +export function LINK_META_PROXY(_serviceUrl: string) { + if (IS_DEV) { + return STAGING_LINK_META_PROXY } - return STAGING_LINK_META_PROXY + return PROD_LINK_META_PROXY } export const STATUS_PAGE_URL = 'https://status.bsky.app/'