Skip to content

Commit

Permalink
chore: update website for multi-ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
tlebon committed Jul 11, 2023
1 parent 09d2fc9 commit 5303b66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/script/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ const config = {
env.APP_BASE === document.location.origin
? env.URL.TEAMS_BASE
: TEAMS_URL + document.location.host.slice(document.location.host.indexOf('.')),
WEBSITE_BASE:
env.APP_BASE === document.location.origin
? env.URL.WEBSITE_BASE
: `https://${document.location.host.slice(document.location.host.indexOf('.'))}`,
},
/** DataDog client api keys acces */
dataDog: {
Expand Down
2 changes: 1 addition & 1 deletion src/script/externalRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const URL = {
PRODUCTION: env.APP_BASE || 'https://app.wire.com',
STAGING: 'https://wire-webapp-staging.zinfra.io',
},
WEBSITE: env.URL?.WEBSITE_BASE,
WEBSITE: Config.getConfig().URL.WEBSITE_BASE ?? env.URL?.WEBSITE_BASE,
};

export const URL_PATH = {
Expand Down

0 comments on commit 5303b66

Please sign in to comment.