Load env var for api url into ui for production

This commit is contained in:
2025-04-14 23:37:47 -04:00
parent 9ad87fbac5
commit c2e9e098ed
5 changed files with 9 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ fi
if [ "$ENVIRONMENT" = "production" ]; then
export UI_ROOT="/usr/share/nginx/html"
envsubst '${VITE_API_URL}' < /usr/share/nginx/html/config.template.js > /usr/share/nginx/html/config.js
echo "Setting production root to ${UI_ROOT}"
else
export UI_ROOT="/home"