Skip to content

Commit

Permalink
Update entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
wmuldergov committed Mar 13, 2024
1 parent 3a72c87 commit 5cc4cda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compose/frontend/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

MAIN=`find /usr/share/nginx/html/static/js/main.*.js`
MAINCSS=`find /usr/share/nginx/html/static/css/main.*.css`
MAINSVG=`find /usr/share/nginx/html/static/media/*.svg`
echo -e "\nwindow.BASE_MAP='${REACT_APP_BASE_MAP}';" >> $MAIN
echo -e "window.MAP_STYLE='${REACT_APP_MAP_STYLE}';" >> $MAIN
echo -e "window.API_HOST='${REACT_APP_API_HOST}';" >> $MAIN
Expand All @@ -16,4 +17,5 @@ sed -i "s~{ENVIRONMENT}~$ENVIRONMENT~g" /etc/nginx/conf.d/default.conf

#precompress the main js and css files to improve performance
gzip -k $MAIN
gzip -k $MAINCSS
gzip -k $MAINCSS
gzip -k $MAINSVG

0 comments on commit 5cc4cda

Please sign in to comment.