-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow runtime configuration #274
feat: allow runtime configuration #274
Conversation
Thanks for the pull request, @MaferMazu! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
This PR is ready for review. I'm attentive to feedback 😊 |
@MaferMazu 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Description
This PR is part of the work to make it possible to configure the frontend applications at runtime.
Related
openedx/wg-frontend#103
https://discuss.openedx.org/t/mfe-runtime-configuration/8495/1
Changes
Update frontend-platform to version 2.5.0
Create a component Head that uses the Helmet library and integrates internationalization to change the MFE name in the title tag according to the language, and change the favicon in runtime.
How to test
To allow runtime configuration, set new environment variables MFE_CONFIG_API_URL and APP_ID in the env file and add the API URL ( To test this, you can use the API from this openedx/edx-platform#30473 or use an external tool to mock the API response).
The API should respond with a JSON with the config values, something like:
The initialize process should work normally.
Note: You can combine build time and runtime configuration
Screenshot