feat: restore credit limits and harden SMS sending

This commit is contained in:
hectorzhao
2026-07-14 18:46:35 +08:00
parent 3e3b7a9d1a
commit c1a17699db
23 changed files with 796 additions and 56 deletions
+10
View File
@@ -19,6 +19,16 @@ set -a
source "$ENV_FILE"
set +a
if [[ "${API_ENABLE_SEND_WORKER:-}" != "true" ]]; then
echo "API_ENABLE_SEND_WORKER=true is required in $ENV_FILE; refusing to deploy with SMS sending disabled." >&2
exit 1
fi
if [[ ! "${API_SEND_WORKER_CONCURRENCY:-}" =~ ^[1-9][0-9]*$ ]]; then
echo "API_SEND_WORKER_CONCURRENCY must be a positive integer in $ENV_FILE." >&2
exit 1
fi
cd "$APP_DIR"
echo "[deploy] Installing dependencies"