Skip to content

Commit

Permalink
fix: set webpack environment variables.
Browse files Browse the repository at this point in the history
This will hopefully fix some issues we're seeing in
building static assets.
  • Loading branch information
dianakhuang committed Dec 12, 2024
1 parent 81d2052 commit 44034f6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
{% for override in edxapp_staticfiles_storage_overrides %}
sudo -E -H -u {{ edxapp_user }} \
env "PATH=$PATH" \
"WEBPACK_CONFIG_PATH=webpack.prod.config.js" \
"STATIC_ROOT_LMS=/edx/var/edxapp/staticfiles" \
"STATIC_ROOT_CMS=/edx/var/edxapp/staticfiles/studio" \
npm install \
&& npm run webpack \
&& npm run compile-sass -- --theme-dir /edx/var/edx-themes/edx-themes/edx-platform --theme-dir /edx/app/edxapp/edx-platform/themes \
Expand All @@ -13,6 +16,9 @@ sudo -E -H -u {{ edxapp_user }} \
{% else %}
sudo -E -H -u {{ edxapp_user }} \
env "PATH=$PATH" \
"WEBPACK_CONFIG_PATH=webpack.prod.config.js" \
"STATIC_ROOT_LMS=/edx/var/edxapp/staticfiles" \
"STATIC_ROOT_CMS=/edx/var/edxapp/staticfiles/studio" \
npm install \
&& npm run webpack \
&& npm run compile-sass -- --theme-dir /edx/var/edx-themes/edx-themes/edx-platform --theme-dir /edx/app/edxapp/edx-platform/themes \
Expand Down

0 comments on commit 44034f6

Please sign in to comment.