diff --git a/src/utils/axiosClient.jsx b/src/utils/axiosClient.jsx index e57f102a..7ad9c902 100644 --- a/src/utils/axiosClient.jsx +++ b/src/utils/axiosClient.jsx @@ -2,9 +2,9 @@ import axios from "axios"; import { useNavigate } from "react-router-dom"; import axiosRetry from "axios-retry"; import showToast from "../services/toastService"; - +const base_Url = process.env.VITE_BASE_URL; export const axiosClient = axios.create({ - baseURL: "http://localhost:5032", // Your Web API URL + baseURL: base_Url, // Your Web API URL withCredentials: false, // Required if the API uses cookies headers: { "Content-Type": "application/json", // Specify the content type