mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
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
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:
parent
7e9ccbc932
commit
2e67e7858f
9 changed files with 71 additions and 104 deletions
|
|
@ -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);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue