Skip to content

Commit 1467194

Browse files
does this fix?
1 parent bfac75d commit 1467194

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

client/src/features/dataConnectorsV2/api/data-connectors.empty-api.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@
1818

1919
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";
2020

21+
import { API_BASE_URL } from "~/utils/api/api.constants";
22+
import { prepareHeaders } from "~/utils/api/api.utils";
23+
2124
// initialize an empty api service that we'll inject endpoints into later as needed
2225
export const dataConnectorsEmptyApi = createApi({
23-
baseQuery: fetchBaseQuery({ baseUrl: "/api/data" }),
26+
baseQuery: fetchBaseQuery({
27+
baseUrl: API_BASE_URL,
28+
prepareHeaders,
29+
}),
2430
endpoints: () => ({}),
2531
reducerPath: "dataConnectorsApi",
2632
});

0 commit comments

Comments
 (0)