Use the api sub-path when desired

This commit is contained in:
Oliver-Akins 2024-03-27 21:30:59 -06:00
parent 08cf6e91ac
commit eef14ad0ee

View file

@ -4,7 +4,7 @@ import axios from "axios";
import "./app.css"; import "./app.css";
export const api = axios.create({ export const api = axios.create({
baseURL: import.meta.env.DEV ? `http://localhost:6969${window.location.pathname}` : import.meta.env.BASE_URL, baseURL: import.meta.env.DEV ? `http://localhost:6969${window.location.pathname}` : import.meta.env.BASE_URL + `/api`,
}); });
// Get all of the internationalization stuff registered and operational // Get all of the internationalization stuff registered and operational