3 changed files with 3 additions and 3 deletions
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
||||
import { conf } from "@/setup/config"; |
||||
import { useAuthStore } from "@/stores/auth"; |
||||
|
||||
export function useBackendUrl(): string | undefined { |
||||
export function useBackendUrl(): string | null { |
||||
const backendUrl = useAuthStore((s) => s.backendUrl); |
||||
return backendUrl ?? conf().BACKEND_URL; |
||||
} |
||||
|
Loading…
Reference in new issue