Skip to content

Commit 0db2173

Browse files
rpenidoarbrandes
authored andcommitted
feat: add course authoring mfe base url to mfe config
1 parent 5b08860 commit 0db2173

3 files changed

+3
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- [Improvement] Adds the "COURSE_AUTHORING_MFE_BASE_URL" to MFE_CONFIG pointing to the Course Authoring MFE address. (by @rpenido)

tutormfe/patches/openedx-lms-development-settings

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ MFE_CONFIG["ACCOUNT_SETTINGS_URL"] = ACCOUNT_MICROFRONTEND_URL
3838
{% if get_mfe("course-authoring") %}
3939
MFE_CONFIG["ENABLE_NEW_EDITOR_PAGES"] = True
4040
MFE_CONFIG["ENABLE_PROGRESS_GRAPH_SETTINGS"] = True
41+
MFE_CONFIG["COURSE_AUTHORING_MICROFRONTEND_URL"] = "http://{{ MFE_HOST }}:{{ get_mfe("course-authoring")["port"]/course-authoring"
4142
{% endif %}
4243

4344
{% if get_mfe("discussions") %}

tutormfe/patches/openedx-lms-production-settings

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ MFE_CONFIG["ACCOUNT_SETTINGS_URL"] = ACCOUNT_MICROFRONTEND_URL
3939
{% if get_mfe("course-authoring") %}
4040
MFE_CONFIG["ENABLE_NEW_EDITOR_PAGES"] = True
4141
MFE_CONFIG["ENABLE_PROGRESS_GRAPH_SETTINGS"] = True
42+
MFE_CONFIG["COURSE_AUTHORING_MICROFRONTEND_URL"] = "{% if ENABLE_HTTPS %}https://{% else %}http://{% endif %}{{ MFE_HOST }}/course-authoring"
4243
{% endif %}
4344

4445
{% if get_mfe("discussions") %}

0 commit comments

Comments
 (0)