diff --git a/src/backend/api.js b/src/backend/api.js index 040f11a..15ec334 100644 --- a/src/backend/api.js +++ b/src/backend/api.js @@ -4,7 +4,7 @@ import {getConfigValue} from "@brojs/cli"; const LOCAL = "http://localhost:8099"; const DEV = "https://dev.bro-js.ru"; -export const BASE_API_URL = LOCAL + getConfigValue("enterfront.api"); +export const BASE_API_URL = DEV + getConfigValue("enterfront.api"); // fetch(`${BASE_API_URL}/books/list`) diff --git a/src/backend/redux/api_slice.js b/src/backend/redux/api_slice.js index df00273..0dee591 100644 --- a/src/backend/redux/api_slice.js +++ b/src/backend/redux/api_slice.js @@ -1,10 +1,7 @@ import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'; import {getConfigValue} from "@brojs/cli"; -const LOCAL = "http://localhost:8099"; -const DEV = "https://dev.bro-js.ru"; - -export const BASE_API_URL = LOCAL + getConfigValue("enterfront.api"); +import { BASE_API_URL } from "../api.js"; const baseQuery = fetchBaseQuery({ baseUrl: BASE_API_URL,