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", "name": "dex-ui-vue",
"version": "0.0.8", "version": "0.0.9",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {

View File

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

View File

@@ -26,7 +26,7 @@ import {useAuthStore} from "./stores/auth.ts";
import SetsView from "./views/set/SetsView.vue"; import SetsView from "./views/set/SetsView.vue";
import JobsView from "./views/JobsView.vue"; import JobsView from "./views/JobsView.vue";
import {definePreset} from "@primeuix/themes"; import {definePreset} from "@primeuix/themes";
import {getApiUrl, initConfig} from "@/util/config.ts"; import {initConfig} from "@/util/config.ts";
import axios from "axios"; import axios from "axios";
// Initialize configuration from window object // Initialize configuration from window object
@@ -139,12 +139,8 @@ router.beforeEach(async (to) => {
app.use(router); app.use(router);
app.use(ToastService) 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({ const axiosInstance = axios.create({
baseURL: devProxy, baseURL: '',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
} }