diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-10-02 11:32:29 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-10-02 11:32:29 +0200 |
| commit | d953fc6decd8365dd054a971af6a4cf25b9439f0 (patch) | |
| tree | 3f9beba5eea02ccb0e12669de5bfe6a755f8903c /apps/kit/src/lib | |
| parent | 9907ffb30cabc38e42cf97048bff306f0e14a8e6 (diff) | |
| download | greatoffice-d953fc6decd8365dd054a971af6a4cf25b9439f0.tar.xz greatoffice-d953fc6decd8365dd054a971af6a4cf25b9439f0.zip | |
refactor: Remove unused configuration value and function
Diffstat (limited to 'apps/kit/src/lib')
| -rw-r--r-- | apps/kit/src/lib/configuration.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/kit/src/lib/configuration.ts b/apps/kit/src/lib/configuration.ts index 8138e27..fa828ca 100644 --- a/apps/kit/src/lib/configuration.ts +++ b/apps/kit/src/lib/configuration.ts @@ -1,14 +1,9 @@ -export const TOP_BASE_DOMAIN = "greatoffice.app"; export const BASE_DOMAIN = "dev.greatoffice.app"; export const DEV_BASE_DOMAIN = "http://localhost"; export const API_ADDRESS = "https://api." + BASE_DOMAIN; export const DEV_API_ADDRESS = "http://localhost:5000"; export const SECONDS_BETWEEN_SESSION_CHECK = 600; -export function base_domain(path: string = ""): string { - return (is_development() ? DEV_BASE_DOMAIN : TOP_BASE_DOMAIN) + (path !== "" ? "/" + path : ""); -} - export function api_base(path: string = ""): string { return (is_development() ? DEV_API_ADDRESS : API_ADDRESS) + (path !== "" ? "/" + path : ""); } |
