fix: removed hardcoded api url
All checks were successful
Build and Push App Image / build-and-push (push) Successful in 1m20s

This commit is contained in:
domrichardson
2026-03-30 10:58:36 +01:00
parent b09137eca5
commit 295e03feb4
8 changed files with 5 additions and 18 deletions

View File

@@ -1,8 +1,10 @@
import axios from "axios";
import { useAuthStore } from "../stores/authStore";
const runtimeOrigin = typeof window !== "undefined" ? window.location.origin : "";
const apiClient = axios.create({
baseURL: import.meta.env.VITE_API_BASE_URL || "http://localhost:8080",
baseURL: runtimeOrigin,
withCredentials: true,
});