mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 00:36:38 +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;
|
axios.defaults.withCredentials = true;
|
||||||
} else {
|
} else {
|
||||||
// user is accessing through a proxy
|
// user is accessing through a proxy
|
||||||
baseURL = window.location.origin + `/${suffix}`;
|
baseURL = `${env.app.dashboardUrl}/${suffix}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!baseURL) {
|
if (!baseURL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user