Compare commits

...

2 Commits

Author SHA1 Message Date
7c2c6834c2 Amend API base URL 2025-07-17 13:37:16 +02:00
7dc4c9192b Amend API base URL 2025-07-17 13:36:56 +02:00
3 changed files with 4 additions and 8 deletions

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "dex-ui-vue",
"version": "0.0.8",
"version": "0.0.9",
"lockfileVersion": 3,
"requires": true,
"packages": {

View File

@@ -1,7 +1,7 @@
{
"name": "dex-ui-vue",
"private": true,
"version": "0.0.8",
"version": "0.0.9",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -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, initConfig} from "@/util/config.ts";
import {initConfig} from "@/util/config.ts";
import axios from "axios";
// Initialize configuration from window object
@@ -139,12 +139,8 @@ router.beforeEach(async (to) => {
app.use(router);
app.use(ToastService)
const devProxy = import.meta.env.DEV && !import.meta.env.VITE_API_HOST && !import.meta.env.VITE_API_PORT
? ''
: `http://${getApiUrl()}`
const axiosInstance = axios.create({
baseURL: devProxy,
baseURL: '',
headers: {
'Content-Type': 'application/json'
}