Add base kubernetes support 2
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
* React Query doesn't replace HTTP clients - it manages data fetching/caching/sync
|
||||
*/
|
||||
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
|
||||
import { getApiUrl } from '../../config/runtime';
|
||||
|
||||
export interface ApiError {
|
||||
message: string;
|
||||
@@ -55,7 +56,7 @@ class ApiClient {
|
||||
config: AxiosRequestConfig;
|
||||
}> = [];
|
||||
|
||||
constructor(baseURL: string = import.meta.env.VITE_API_BASE_URL || 'http://localhost:8000/api/v1') {
|
||||
constructor(baseURL: string = getApiUrl() + '/api/v1') {
|
||||
this.baseURL = baseURL;
|
||||
|
||||
this.client = axios.create({
|
||||
|
||||
Reference in New Issue
Block a user