Now that Olive supports MFE dynamic configuration, I find myself trying to convert a plugin I was using previously under Nutmeg to add specific environment variables to all MFEs.
I was using the “mfe-env-production” tutor patch that no longer exists under Olive.
What patch should I use to add a specific variable in an MFE?
For example, here is what I was using:
How do I convert it to work with Olive?
Now that plugins/mfe/build/mfe/env/production no longer exists in Olive, I need to be able to make these variables available to all MFEs, but I fail to understand where I need to add them now…
Any suggestions would be greatly appreciated.
This is also covered in the upcoming Release Notes. You’ll want to use
openedx-lms-production-settings, where you would:
MFE_CONFIG["SEARCH_CATALOG_URL"] = "https://catalogue.edulib.org"
MFE_CONFIG["CYBERSOURCE_URL"] = "https://secureacceptance.cybersource.com/silent/pay"
Note that this means these configuration items will be accessible to all MFEs. This should be harmless unless there’s a collision with the names of the settings variables. In which case you would instead want to scope the variable to a specific MFE:
MFE_CONFIG_OVERRIDES["payment"]["SEARCH_CATALOG_URL"] = "https://catalogue.edulib.org"
Many many thanks @arbrandes
I was that close. I figured out it was going to be in
openedx-lms-production-settings by looking at the code, but I was unsure how to proceed.
And you also read my mind because the original use of my plugin was to override the SEARCH_CATALOG_URL in a specific MFE at some point. And in that case, I don’t mind if all MFEs have the same link to our external catalog.
Thank you again.