Skip to content

Commit

Permalink
Merge pull request #152 from RDFLib/jamie/entrypoint-fix
Browse files Browse the repository at this point in the history
Base URL entrypoint fix
  • Loading branch information
jamiefeiss authored Feb 28, 2024
2 parents 69a3b44 + 60ed8bb commit 6563096
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docker_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ if (declare -p "VITE_BASE_URL" &>/dev/null)
then
sed -i "s|BASE_URL = \"/\"|BASE_URL = \"$VITE_BASE_URL\"|g" /app/index.html
sed -i "s|/@BASE_URL@/|$VITE_BASE_URL|g" /app/index.html ${INDEX_FILE}
cp /app/index.html /app/404.html
else
sed -i "s|/@BASE_URL@/|/|g" /app/index.html ${INDEX_FILE}
fi
cp /app/index.html /app/404.html

nginx -g 'daemon off;';
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ http {

access_log /var/log/nginx/access.log;
gzip on;
gzip_types text/html application/javascript application/json text/css;
gzip_types application/javascript application/json text/css;
root /app;
index index.html;

Expand Down

0 comments on commit 6563096

Please sign in to comment.