can now deploy with a chosen whitelabel
This commit is contained in:
parent
2c77d3253b
commit
577de35160
2 changed files with 10 additions and 1 deletions
|
|
@ -32,9 +32,15 @@ SSH_OPTS="-i $DEPLOY_SSH_KEY"
|
|||
echo "→ Deploying to $DEPLOY_USER@$DEPLOY_HOST using key $DEPLOY_SSH_KEY"
|
||||
|
||||
# 1. Build frontend for LAN / self-contained hosts (indexLocal.html via vite --mode localnet)
|
||||
# Pass VITE_WHITELABEL if provided as an argument; otherwise Vite reads it from .env
|
||||
(
|
||||
cd "$SCRIPT_DIR"
|
||||
npm run build:local
|
||||
if [[ -n "${1:-}" ]]; then
|
||||
echo "→ Whitelabel override: $1"
|
||||
VITE_WHITELABEL="$1" npm run build:local
|
||||
else
|
||||
npm run build:local
|
||||
fi
|
||||
)
|
||||
|
||||
# Fail if the bundle still embeds Crisp (wrong vite mode or stale build/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue