fix: update iframe static stylesheet #35
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolution
EdX Changes Needed
openedx#1056
Error
This error occurs because it cannot resolve the path. https://apps.chooseaerospace.maple3.ew-dev.com/ points to Cloudfront distribution (ID: E2GD04LD50Q7ZC, Domain Name: d2gft0eoukrnma.cloudfront.net) which has origin S3 bucket of educateworkforce-mfe-chooseaerospace-staging.s3.us-east-1.amazonaws.com. This S3 bucket has folders for each MFE (ie. /account/, /course-authoring/, /learning/, etc). and therefore needs those directories in the path to the CSS stylesheet that the app is trying to find (ie. https://apps.chooseaerospace.maple3.ew-dev.com/learning/.css)..)
The highlighted path would resolve to something like https://apps.chooseaerospace.maple3.ew-dev.com/src/course-home/outline-tab/LmsHtmlFragment.css which is not found in the S3 bucket directory. In fact the only CSS file found there is the npm build version https://educateworkforce-mfe-staging.s3.amazonaws.com/learning/app.6d7430f099cb09acda65.css
Need to consider how to rework the LmsHtmlFragment.jsx CSS include statement because it's being used in an <iframe> header link.