File tree 3 files changed +2
-5
lines changed
3 files changed +2
-5
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ ENV_JSON="$(jq --compact-output --null-input 'env | with_entries(select(.key | s
9
9
# Inside of JSON strings newlines are already escaped.
10
10
ENV_JSON_ESCAPED=" $( printf " %s" " ${ENV_JSON} " | sed -e ' s/[\&/]/\\&/g' ) "
11
11
12
- sed -i " s/%REACT_APP_ENV%/ ${ENV_JSON_ESCAPED} /g" /var/www/index.html
12
+ sed -i " s/<noscript id= \" env-insertion-point \" ><\/noscript>/<script>var ENV= ${ENV_JSON_ESCAPED} <\/script> /g" /var/www/index.html
13
13
14
14
exec " $@ "
Original file line number Diff line number Diff line change 23
23
Learn how to configure a non-root public URL by running `npm run build`.
24
24
-->
25
25
26
- < script >
27
- var ENV = % REACT_APP_ENV % ;
28
- </ script >
26
+ < noscript id ="env-insertion-point "> </ noscript >
29
27
30
28
< title > React App</ title >
31
29
</ head >
You can’t perform that action at this time.
0 commit comments