Skip to content
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

fix: add patch for webpack prod config to handle env vars #281

Closed
wants to merge 16 commits into from

Conversation

jsnwesson
Copy link
Contributor

APER-2786

This is a follow-up to #275 to have Webpack Prod config use env.config.js for assigning NEW_RELIC_APP_ID and BASE_URL during the creation of two New Relic plugins.

This work is a temporary patch until we can add these changes to frontend-build and Learner Record migrates from using @edx/frontend-build to @openedx/frontend-build as a dependency.

* webpack.dev.config.js will be able to use the port number provided in the env.config.js
* webpack.prod.config.js will be able to build Learner Record with a JS config passed in during build time
* Jest is now set up to retrieve environment variables from a JS config
* some tests needed to be fixed
* add JS/JSX compatability to jest and webpack configs
…ork in development

* since frontend-build is a devdependency, post-package will not include its patches in prod
Copy link

codecov bot commented Feb 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ff97cc8) 70.22% compared to head (a189fd5) 70.22%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #281   +/-   ##
=======================================
  Coverage   70.22%   70.22%           
=======================================
  Files          27       27           
  Lines         403      403           
  Branches       85       85           
=======================================
  Hits          283      283           
  Misses        119      119           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jsnwesson
Copy link
Contributor Author

Closed by #282

@jsnwesson jsnwesson closed this Feb 12, 2024
@jsnwesson jsnwesson deleted the jwesson/fix-applicationId-new-relic-js-config branch February 13, 2024 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant