This commit is contained in:
Jamitz 2026-01-06 14:10:58 +00:00
parent 13de7316ef
commit be63cb82e6

View file

@ -33,7 +33,9 @@ interface AuthState {
clearAll: () => void; clearAll: () => void;
} }
const API_URL = "http://localhost:8000/api"; const API_URL =
import.meta.env.VITE_API_URL ||
(import.meta.env.PROD ? "/api" : "http://localhost:8000/");
export const useAuthStore = create<AuthState>()( export const useAuthStore = create<AuthState>()(
persist( persist(