From 45cb1562e5d1bc1a1690efbe341f38a19f77ffbc Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Mon, 8 Sep 2025 16:55:21 -0700 Subject: [PATCH] pull api base url from config for axios --- src/lib/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/api/index.ts b/src/lib/api/index.ts index edb281b7..5cef9f0e 100644 --- a/src/lib/api/index.ts +++ b/src/lib/api/index.ts @@ -22,7 +22,7 @@ export function createApiClient({ env }: { env: Env }): AxiosInstance { axios.defaults.withCredentials = true; } else { // user is accessing through a proxy - baseURL = window.location.origin + `/${suffix}`; + baseURL = `${env.app.dashboardUrl}/${suffix}`; } if (!baseURL) {