Skip to content

Commit

Permalink
Remove vestigial baseUrl property (#2638)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec authored Sep 26, 2023
1 parent 205cf10 commit d628f95
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion nginx/init/25-combine-runtime-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ OUTFILE=${FRONTEND_HOST_DIR}/scripts/config.js
# JavaScript object that is generated.
declare -A env_map
env_map=(
["CONFIG_BASE_URL"]="baseUrl"
["CONFIG_USE_CONNECTION_URL"]="useConnectionBaseUrlForApi"
["CONFIG_CAPTCHA_REQD"]="captchaRequired"
["CONFIG_CAPTCHA_SITE_KEY"]="captchaSiteKey"
Expand Down
6 changes: 0 additions & 6 deletions src/types/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ export class RuntimeConfig {
}

public baseUrl(): string {
// TODO: Remove support for previous configuration solution when
// Docker-based installation is used in production.
if (window.runtimeConfig.hasOwnProperty("baseUrl")) {
return window.runtimeConfig.baseUrl;
}

if (window.runtimeConfig.hasOwnProperty("useConnectionBaseUrlForApi")) {
return `${window.location.protocol}//${window.location.host}`;
}
Expand Down

0 comments on commit d628f95

Please sign in to comment.