From 790564b74e5179112e7935d7c6cfc3ed7b6d1a2a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 17 Dec 2024 18:01:40 -0600 Subject: [PATCH] Fix BACKEND_URL with baseClient --- src/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/index.ts b/src/api/index.ts index 3d531c105..1630a3db2 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -22,7 +22,7 @@ export const baseClient = ( accessToken?: string | null, baseURL?: string, ): MastodonClient => { - return new MastodonClient(baseURL || location.origin, accessToken || undefined); + return new MastodonClient(baseURL || BuildConfig.BACKEND_URL || location.origin, accessToken || undefined); }; /**