This commit is contained in:
Mary Hipp 2023-06-22 14:51:27 -04:00 committed by psychedelicious
parent 878847defd
commit 8137a99981

View File

@ -50,10 +50,7 @@ const dynamicBaseQuery: BaseQueryFn<
unknown, unknown,
FetchBaseQueryError FetchBaseQueryError
> = async (args, api, extraOptions) => { > = async (args, api, extraOptions) => {
let baseUrl = '/api/v1'; const baseUrl = OpenAPI.BASE || '';
if (OpenAPI.BASE) {
baseUrl = OpenAPI.BASE;
}
const rawBaseQuery = fetchBaseQuery({ const rawBaseQuery = fetchBaseQuery({
baseUrl: `${baseUrl}/api/v1`, baseUrl: `${baseUrl}/api/v1`,