Amend env var stubs
This commit is contained in:
@@ -139,12 +139,12 @@ router.beforeEach(async (to) => {
|
||||
app.use(router);
|
||||
app.use(ToastService)
|
||||
|
||||
let apiUrl = getApiUrl();
|
||||
let apiUrl: string | undefined
|
||||
|
||||
if (!apiUrl) {
|
||||
apiUrl = `http://${apiUrl}`
|
||||
if (!getApiUrl()) {
|
||||
apiUrl = `http://${getApiUrl()}`
|
||||
} else {
|
||||
apiUrl = ''
|
||||
apiUrl = "http://localhost:7070"
|
||||
}
|
||||
|
||||
const axiosInstance = axios.create({
|
||||
@@ -173,6 +173,7 @@ axiosInstance.interceptors.response.use(
|
||||
}
|
||||
)
|
||||
|
||||
console.log(apiUrl)
|
||||
const deckService: DeckService = new DeckService(undefined, undefined, axiosInstance)
|
||||
const cardService: CardService = new CardService(undefined, undefined, axiosInstance)
|
||||
const setService: SetService = new SetService(undefined, undefined, axiosInstance)
|
||||
|
||||
Reference in New Issue
Block a user