diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-06-07 01:42:54 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-06-07 01:42:54 +0200 |
| commit | 935bf67a6fe582d1c3798561acf843a16ffef3a7 (patch) | |
| tree | 805b10dab125cafa526f9de971254d2cb40b90c5 /apps | |
| parent | dd8ddba2393c0c37f2b748234f1de68fc828bdc2 (diff) | |
| download | greatoffice-935bf67a6fe582d1c3798561acf843a16ffef3a7.tar.xz greatoffice-935bf67a6fe582d1c3798561acf843a16ffef3a7.zip | |
fix: Correct path to BASE_DOMAIN
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/web-shared/src/lib/configuration.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/web-shared/src/lib/configuration.ts b/apps/web-shared/src/lib/configuration.ts index 2004b13..eb38400 100644 --- a/apps/web-shared/src/lib/configuration.ts +++ b/apps/web-shared/src/lib/configuration.ts @@ -1,3 +1,4 @@ +export const TOPBASEDOMAIN = "greatoffice.life"; export const BASE_DOMAIN = "dev.greatoffice.life"; export const DEV_BASE_DOMAIN = "localhost"; export const API_ADDRESS = "https://api." + BASE_DOMAIN; @@ -15,7 +16,7 @@ export function projects_base(path: string = ""): string { } export function base_domain(path: string = ""): string { - return (is_development() ? DEV_BASE_DOMAIN : BASE_DOMAIN) + (path !== "" ? "/" + path : ""); + return (is_development() ? DEV_BASE_DOMAIN : TOPBASEDOMAIN) + (path !== "" ? "/" + path : ""); } export function frontpage_base(path: string = ""): string { |
