diff --git a/src/main.ts b/src/main.ts index e225fa1..6f98462 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,7 +26,7 @@ import {useAuthStore} from "./stores/auth.ts"; import SetsView from "./views/set/SetsView.vue"; import JobsView from "./views/JobsView.vue"; import {definePreset} from "@primeuix/themes"; -import {getApiUrl, getConfig, initConfig} from "@/util/config.ts"; +import {getApiUrl, initConfig} from "@/util/config.ts"; import axios from "axios"; // Initialize configuration from window object @@ -139,8 +139,6 @@ router.beforeEach(async (to) => { app.use(router); app.use(ToastService) -let apiUrl: string | undefined - const devProxy = import.meta.env.DEV && !import.meta.env.VITE_API_HOST && !import.meta.env.VITE_API_PORT ? '' : `http://${getApiUrl()}` @@ -171,7 +169,6 @@ 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)