Skip to content

Commit 9907ee8

Browse files
authored
Support for custom bundle location via JS_RUNTIME_TARGET_BUNDLE
1 parent 0e128f4 commit 9907ee8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.profile.d/inject_react_app_env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ set -e
55
# Debug, echo every command
66
#set -x
77

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

1212
if [ -f $js_bundle ]
1313
then

0 commit comments

Comments
 (0)