diff --git a/workspaces/config/lib/index.js b/workspaces/config/lib/index.js index 9c1fad0c59f62..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') - if (cliPrefix) { - this.localPrefix = cliPrefix + const explicitPrefix = this.#get('prefix', 'cli') || this.#get('prefix', 'env') + if (explicitPrefix) { + this.localPrefix = explicitPrefix return }