diff options
author | 2025-02-09 13:18:28 +0100 | |
---|---|---|
committer | 2025-02-10 09:04:41 +0100 | |
commit | c1667e6060e078b31d7b64ce509d58e853df3a3b (patch) | |
tree | 1ff01c3a0c27cbb7e4b1171e5c824c0433e7c2e9 /usecaseui-portal/src/environments/environment.ts | |
parent | 9410a0b6eb80fda6dd652424e8c80ffa46d43077 (diff) |
Backend url is environment specific in some locations
- use `window.location.origin` to make the backend url working for both
local (localhost) and remote (uui.example.com) deployments
Issue-ID: USECASEUI-865
Change-Id: Idf5b6fe8a04ce744fc4cb9986c10977e60548820
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'usecaseui-portal/src/environments/environment.ts')
-rw-r--r-- | usecaseui-portal/src/environments/environment.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usecaseui-portal/src/environments/environment.ts b/usecaseui-portal/src/environments/environment.ts index cf6bba0d..c423f686 100644 --- a/usecaseui-portal/src/environments/environment.ts +++ b/usecaseui-portal/src/environments/environment.ts @@ -5,4 +5,5 @@ export const environment = { production: false, + backendUrl: window.location.origin + '/api/usecaseui-server/v1', }; |