Add way for infisical to switch accounts when signed into wrong account
Build and Push Next App / quality (push) Successful in 1m34s
Build and Push Next App / build-next (push) Successful in 4m11s

This commit is contained in:
Gabriel Brown
2026-06-22 13:14:25 -04:00
parent 42f95530de
commit 7e7bec56d5
6 changed files with 440 additions and 1 deletions
+1
View File
@@ -22,6 +22,7 @@ fi
[ -f "$ROOT_DIR/.infisical.json" ] || { echo "export-env: run 'infisical init' in this repository." >&2; exit 1; }
command -v infisical >/dev/null 2>&1 || { echo "export-env: Infisical CLI is required." >&2; exit 1; }
"$ROOT_DIR/scripts/infisical-account" ensure
(cd "$ROOT_DIR" && infisical export --env="$INFISICAL_ENV" --format=dotenv --silent) || {
echo "export-env: failed to export '$INFISICAL_ENV'; check login and project access." >&2