summaryrefslogtreecommitdiffstats
path: root/apps/web-shared/src/lib
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-06-05 15:43:08 +0200
committerivarlovlie <git@ivarlovlie.no>2022-06-05 15:43:33 +0200
commit1cb220ef54ddaf635b322d8c24f38613f371285e (patch)
tree8fa0445d9642b8774b7ecfeea5d45a244403d82d /apps/web-shared/src/lib
parentdccb6a5cf79699ed78bc3101f76c97b21f5a842e (diff)
downloadgreatoffice-1cb220ef54ddaf635b322d8c24f38613f371285e.tar.xz
greatoffice-1cb220ef54ddaf635b322d8c24f38613f371285e.zip
feat: New frontpage
Diffstat (limited to 'apps/web-shared/src/lib')
-rw-r--r--apps/web-shared/src/lib/configuration.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/web-shared/src/lib/configuration.ts b/apps/web-shared/src/lib/configuration.ts
index e4cd1ef..188d615 100644
--- a/apps/web-shared/src/lib/configuration.ts
+++ b/apps/web-shared/src/lib/configuration.ts
@@ -1,26 +1,26 @@
export const API_ADDRESS = "https://api.dev.greatoffice.life";
export const PROJECTS_ADDRESS = "https://projects.dev.greatoffice.life";
-export const ACCOUNTS_ADDRESS = "https://a.dev.greatoffice.life";
+export const PORTAL_ADDRESS = "https://portal.dev.greatoffice.life";
export const FRONTPAGE_ADDRESS = "https://greatoffice.life";
-export const DEV_ACCOUNTS_ADDRESS = "http://localhost:3001";
+export const DEV_PORTAL_ADDRESS = "http://localhost:3001";
export const DEV_FRONTPAGE_ADDRESS = "http://localhost:3002";
export const DEV_API_ADDRESS = "http://localhost:5000";
export const DEV_PROJECTS_ADDRESS = "http://localhost:3000";
export const SECONDS_BETWEEN_SESSION_CHECK = 600;
-export function projects_base(path: string): string {
+export function projects_base(path: string = ""): string {
return (is_development() ? DEV_PROJECTS_ADDRESS : PROJECTS_ADDRESS) + (path ? "/" + path : "/");
}
-export function frontpage_base(path: string): string {
+export function frontpage_base(path: string = ""): string {
return (is_development() ? DEV_FRONTPAGE_ADDRESS : FRONTPAGE_ADDRESS) + (path ? "/" + path : "/");
}
-export function accounts_base(path: string): string {
- return (is_development() ? DEV_ACCOUNTS_ADDRESS : ACCOUNTS_ADDRESS) + (path ? "/" + path : "/");
+export function portal_base(path: string = ""): string {
+ return (is_development() ? DEV_PORTAL_ADDRESS : PORTAL_ADDRESS) + (path ? "/" + path : "/");
}
-export function api_base(path: string): string {
+export function api_base(path: string = ""): string {
return (is_development() ? DEV_API_ADDRESS : API_ADDRESS) + (path ? "/" + path : "/");
}