Updated env variables + added axios base url.
This commit is contained in:
@@ -22,6 +22,13 @@ import App from "./App";
|
|||||||
|
|
||||||
moment.locale("en-US");
|
moment.locale("en-US");
|
||||||
|
|
||||||
|
//if (process.env.NODE_ENV === "prodution")
|
||||||
|
axios.defaults.baseURL =
|
||||||
|
process.env.REACT_APP_AXIOS_BASE_API_URL || "https://api.imex.online/";
|
||||||
|
console.log(
|
||||||
|
" process.env.REACT_APP_AXIOS_BASE_API_URL ",
|
||||||
|
process.env.REACT_APP_AXIOS_BASE_API_URL
|
||||||
|
);
|
||||||
export const axiosAuthInterceptorId = axios.interceptors.request.use(
|
export const axiosAuthInterceptorId = axios.interceptors.request.use(
|
||||||
async (config) => {
|
async (config) => {
|
||||||
if (!config.headers.Authorization) {
|
if (!config.headers.Authorization) {
|
||||||
|
|||||||
Reference in New Issue
Block a user