mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-29 06:10:47 +00:00
pull api base url from config for axios
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user