Use the api sub-path when desired
This commit is contained in:
parent
08cf6e91ac
commit
eef14ad0ee
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ import axios from "axios";
|
|||
import "./app.css";
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue