Update upload script to allow API URL and key to be set via environment variables

This commit is contained in:
2026-01-26 16:41:04 +01:00
parent 2a498124fe
commit b1fd6da218

View File

@@ -2,8 +2,8 @@
set -euo pipefail
JMESPATH_PLAYGROUND_API_URL="http://localhost:3000" # May be set in bash profile
JMESPATH_PLAYGROUND_API_KEY="" # Required if not localhost
JMESPATH_PLAYGROUND_API_URL="${JMESPATH_PLAYGROUND_API_URL:-http://localhost:3000}" # May be set in bash profile
JMESPATH_PLAYGROUND_API_KEY="${JMESPATH_PLAYGROUND_API_KEY:-}" # Required if not localhost
JSON_FILE="-"