From e9ebde0b8a8178101a4e4eb4ce2404eb4e061d8f Mon Sep 17 00:00:00 2001 From: Marcell Perger Date: Thu, 3 Jul 2025 22:24:25 +0100 Subject: [PATCH 1/2] fix: Fix using environment variables to specify prefix --- workspaces/config/lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspaces/config/lib/index.js b/workspaces/config/lib/index.js index 9c1fad0c59f62..72da6f2aeb159 100644 --- a/workspaces/config/lib/index.js +++ b/workspaces/config/lib/index.js @@ -683,7 +683,7 @@ class Config { } async loadLocalPrefix () { - const cliPrefix = this.#get('prefix', 'cli') + const cliPrefix = this.#get('prefix', 'cli') || this.#get('prefix', 'env') if (cliPrefix) { this.localPrefix = cliPrefix return From b0fe1e9411428df4acd10a71827d5331bdef4cf1 Mon Sep 17 00:00:00 2001 From: Marcell Perger Date: Sat, 5 Jul 2025 00:11:49 +0100 Subject: [PATCH 2/2] chore: Fix variable name --- workspaces/config/lib/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workspaces/config/lib/index.js b/workspaces/config/lib/index.js index 72da6f2aeb159..9c932ffe0f29d 100644 --- a/workspaces/config/lib/index.js +++ b/workspaces/config/lib/index.js @@ -683,9 +683,9 @@ class Config { } async loadLocalPrefix () { - const cliPrefix = this.#get('prefix', 'cli') || this.#get('prefix', 'env') - if (cliPrefix) { - this.localPrefix = cliPrefix + const explicitPrefix = this.#get('prefix', 'cli') || this.#get('prefix', 'env') + if (explicitPrefix) { + this.localPrefix = explicitPrefix return }