web/env: rename apiURL to defaultApiURL

references to it are now easier to read and understand
This commit is contained in:
wukko 2024-11-18 16:30:27 +06:00
parent 4a70f09017
commit 2b2bc57331
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
2 changed files with 4 additions and 5 deletions

View file

@ -1,7 +1,6 @@
import { get } from "svelte/store";
import env, { apiURL } from "$lib/env";
import settings from "$lib/state/settings";
import env, { defaultApiURL } from "$lib/env";
export const currentApiURL = () => {
const processingSettings = get(settings).processing;
@ -15,5 +14,5 @@ export const currentApiURL = () => {
return new URL(env.DEFAULT_API).origin;
}
return new URL(apiURL).origin;
return new URL(defaultApiURL).origin;
}

View file

@ -55,7 +55,7 @@ const docs = {
apiLicense: "https://github.com/imputnet/cobalt/blob/main/api/LICENSE",
};
const apiURL = "https://api.cobalt.tools";
const defaultApiURL = "https://api.cobalt.tools";
export { donate, apiURL, contacts, partners, siriShortcuts, docs };
export { donate, defaultApiURL, contacts, partners, siriShortcuts, docs };
export default variables;