We’re trying to use a custom learning micro front end application in production. But I’m not sure how to update the lms urls to point to the new learning mfe.
I made the following plugin, but we still seem to be using the original mfe:
openedx-lms-common-settings: |
LEARNING_MICROFRONTEND_URL = "https://learn.lms.ourdomain.com"
MFE_LEARNING_MFE_APP = "https://learn.lms.ourdomain.com"
CORS_ORIGIN_WHITELIST.append("https://learn.lms.ourdomain.com")
LOGIN_REDIRECT_WHITELIST.append("learn.lms.ourdomain.com")
CSRF_TRUSTED_ORIGINS.append("learn.lms.ourdomain.com")
We can go to the new mfe url manually and see courses.
Any help would be appreciated!
Edit:
Some additional information. We do use the tutor-mfe plugin, which does set LEARNING_MICROFRONTEND_URL:
tutormfe/patches/openedx-lms-development-settings:LEARNING_MICROFRONTEND_URL = "http://{{ MFE_HOST }}:{{ MFE_LEARNING_MFE_APP["port"] }}/{{ MFE_LEARNING_MFE_APP["name"] }}"
source: tutor-mfe/openedx-lms-production-settings at master · overhangio/tutor-mfe · GitHub
Is there a way to override this value?