From be63cb82e63874ba4286f2ed418f24ad313dd936 Mon Sep 17 00:00:00 2001 From: Jamitz Date: Tue, 6 Jan 2026 14:10:58 +0000 Subject: [PATCH] update --- frontend/src/stores/authStore.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/stores/authStore.ts b/frontend/src/stores/authStore.ts index cadeb4d..2f39585 100644 --- a/frontend/src/stores/authStore.ts +++ b/frontend/src/stores/authStore.ts @@ -33,7 +33,9 @@ interface AuthState { 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()( persist(