-
Notifications
You must be signed in to change notification settings - Fork 79
feat: adds LEARNING_BASE_URL to config #243
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
Conversation
ce211d3 to
c2638ee
Compare
|
Note that you'll want to add this new variable to Also, would you be able to add a PR to update the environment variable documentation here? https://github.com/edx/edx-developer-docs/blob/master/docs/micro_frontends/index.rst I would have mentioned it earlier but forgot! |
|
@davidjoy added the suggested changes, thanks for helping me out here. I really appreciate that. |
src/setupTest.js
Outdated
| process.env.ECOMMERCE_BASE_URL = 'http://localhost:18130'; | ||
| process.env.LANGUAGE_PREFERENCE_COOKIE_NAME = 'openedx-language-preference'; | ||
| process.env.LMS_BASE_URL = 'http://localhost:18000'; | ||
| process.env.LOGIN_URL = 'http://localhost:2000'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Watch out! This says LOGIN_URL still. 😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops!!! 🤭
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setupTest needs a tweak from LOGIN_URL to LEARNING_BASE_URL
This PR adds `config.LEARNING_BASE_UR` for all frontends to use.
c7ccd28 to
21b3bf0
Compare
|
Done - I will update the docs after this PR is merged. |
TNL-8896
TNL-9227
Related PRs:
course authoring mfe: openedx/frontend-app-authoring#210
edge: https://github.com/edx/edge-internal/pull/395/files
edX: https://github.com/edx/edx-internal/pull/5672
Description:
This PR adds
config.LEARNING_BASE_URLfor all frontends to use.Merge checklist:
frontend-platform. This can be done by runningnpm startand opening http://localhost:8080.module.config.jsfile infrontend-build.fix,feat) and is appropriate for your code change. Consider whether your code is a breaking change, and modify your commit accordingly.Post merge: