From 8a2ccc00da4db41b8c37d0247a5dde100759cf0e Mon Sep 17 00:00:00 2001 From: Ghassan Maslamani Date: Tue, 25 Apr 2023 15:21:49 +0300 Subject: [PATCH] fix: Add account url in dynamic config frontend-component-header since version v.3.5 requires the the settings of ACCOUNT_SETTINGS_URL to exists as it uses it point to the account MFE. - openedx/frontend-component-header/pull/210 PR that add the setting the componenet - openedx/wg-build-test-release/issues/268 which this fixes --- tutormfe/patches/openedx-lms-development-settings | 3 +++ tutormfe/patches/openedx-lms-production-settings | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tutormfe/patches/openedx-lms-development-settings b/tutormfe/patches/openedx-lms-development-settings index ac347fde..d7e5e94b 100644 --- a/tutormfe/patches/openedx-lms-development-settings +++ b/tutormfe/patches/openedx-lms-development-settings @@ -19,6 +19,9 @@ MFE_CONFIG = { "STUDIO_BASE_URL": "http://{{ CMS_HOST }}:8001", "USER_INFO_COOKIE_NAME": "user-info", "ACCESS_TOKEN_COOKIE_NAME": "edx-jwt-cookie-header-payload", +{% if MFE_ACCOUNT_MFE_APP %} + "ACCOUNT_SETTINGS_URL": "{{ "https" if ENABLE_HTTPS else "http" }}://{{ MFE_HOST }}/{{ MFE_ACCOUNT_MFE_APP["name"] }}", +{%- endif %} } # MFE-specific settings diff --git a/tutormfe/patches/openedx-lms-production-settings b/tutormfe/patches/openedx-lms-production-settings index 0e62e3b7..379ce1f0 100644 --- a/tutormfe/patches/openedx-lms-production-settings +++ b/tutormfe/patches/openedx-lms-production-settings @@ -19,6 +19,9 @@ MFE_CONFIG = { "STUDIO_BASE_URL": "{{ "https" if ENABLE_HTTPS else "http" }}://{{ CMS_HOST }}", "USER_INFO_COOKIE_NAME": "user-info", "ACCESS_TOKEN_COOKIE_NAME": "edx-jwt-cookie-header-payload", +{% if MFE_ACCOUNT_MFE_APP %} + "ACCOUNT_SETTINGS_URL": "{{ "https" if ENABLE_HTTPS else "http" }}://{{ MFE_HOST }}/{{ MFE_ACCOUNT_MFE_APP["name"] }}", +{%- endif %} }