refactor: 🛂 Refactor account switching to ask for instance
Some checks failed
CodeQL / Analyze (javascript) (push) Failing after 54s
Deploy to GitHub Pages / build (push) Failing after 1m45s
Deploy to GitHub Pages / deploy (push) Has been skipped
Docker / build (push) Failing after 17s
Mirror to Codeberg / Mirror (push) Failing after 1s

This commit is contained in:
Jesse Wierzbinski 2025-02-09 20:14:27 +01:00
parent 7e9ccbc932
commit 2e67e7858f
No known key found for this signature in database
9 changed files with 71 additions and 104 deletions

View file

@ -1,10 +0,0 @@
export const useBaseUrl = () => {
// Check if running on Onion URL
if (useRequestURL().hostname.endsWith(".onion")) {
return ref(
useRuntimeConfig().public.onionApiHost ?? useRequestURL().origin,
);
}
return ref(useRuntimeConfig().public.apiHost ?? useRequestURL().origin);
};