Skip to content

Commit ffba1a3

Browse files
committed
Create gzip file
1 parent 9576169 commit ffba1a3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

compose/frontend/default.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ gzip_types
2424
application/rss+xml
2525
application/atom_xml;
2626
gzip_disable "MSIE [1-6]\.";
27+
gzip_static on;
2728

2829

2930
server {

compose/frontend/entrypoint

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ echo -e "window.ROUTE_PLANNER_KEY='${REACT_APP_ROUTE_PLANNER_KEY}';" >> $MAIN
1111
echo -e "window.REPLAY_THE_DAY='${REACT_APP_REPLAY_THE_DAY}';" >> $MAIN
1212

1313
# Set the environment to be used for caching django content
14-
sed -i "s~{ENVIRONMENT}~$ENVIRONMENT~g" /etc/nginx/conf.d/default.conf
14+
sed -i "s~{ENVIRONMENT}~$ENVIRONMENT~g" /etc/nginx/conf.d/default.conf
15+
16+
#gzip the main js file to improve performance
17+
gzip -k $MAIN

0 commit comments

Comments
 (0)