Skip to content

Commit

Permalink
Support for custom bundle location via JS_RUNTIME_TARGET_BUNDLE
Browse files Browse the repository at this point in the history
  • Loading branch information
mars authored Aug 12, 2018
1 parent 0e128f4 commit 9907ee8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .profile.d/inject_react_app_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ set -e
# Debug, echo every command
#set -x

# Each bundle is generated with a unique hash name
# to bust browser cache.
js_bundle=/app/build/static/js/main.*.js
# Each bundle is generated with a unique hash name to bust browser cache.
# Use shell `*` globbing to fuzzy match.
js_bundle="${JS_RUNTIME_TARGET_BUNDLE:-/app/build/static/js/main.*.js}"

if [ -f $js_bundle ]
then
Expand Down

0 comments on commit 9907ee8

Please sign in to comment.