update
This commit is contained in:
parent
13de7316ef
commit
be63cb82e6
1 changed files with 3 additions and 1 deletions
|
|
@ -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<AuthState>()(
|
||||
persist(
|
||||
|
|
|
|||
Loading…
Reference in a new issue