From 5fad69b77cc07baf4f5a9980bf627df374adf95b Mon Sep 17 00:00:00 2001 From: Ghassan Maslamani Date: Sun, 16 Oct 2022 20:36:00 +0300 Subject: [PATCH] feat: complie with kyle way of overriding config This is complie with Kyle PR openedx/edx-platform/pull/30830 --- tutormfe/patches/openedx-lms-production-settings | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tutormfe/patches/openedx-lms-production-settings b/tutormfe/patches/openedx-lms-production-settings index b4f96db6..ebda84b8 100644 --- a/tutormfe/patches/openedx-lms-production-settings +++ b/tutormfe/patches/openedx-lms-production-settings @@ -40,13 +40,16 @@ MFE_CONFIG = { "USER_INFO_COOKIE_NAME": "user-info" } + +MFE_CONFIG_OVERRIDES = { {% for app in iter_values_named(suffix="MFE_APP") %} -MFE_CONFIG_{{app.get('name') | upper }} = { +"{{app.get('name')}}": { {%- for key, value in app.get("env", {}).get("production", {}).items() %} "{{ key }}": "{{ value }}", {%- endfor %} -} +}, {% endfor %} +} # Ends Dynamic config API settings