diff --git a/src/cli/pilotdeck.ts b/src/cli/pilotdeck.ts index 8c6d4226..eb49faf1 100644 --- a/src/cli/pilotdeck.ts +++ b/src/cli/pilotdeck.ts @@ -34,7 +34,7 @@ async function main(argv = process.argv.slice(2)): Promise { // Apply proxy from config (env-based proxy from top-level installGlobalProxy // takes precedence; this fills in when only pilotdeck.yaml has a proxy). if (snapshot.config.proxy?.url) { - await installGlobalProxy(snapshot.config.proxy.url); + await installGlobalProxy(snapshot.config.proxy.url, snapshot.config.proxy.noProxy); } let alwaysOn: AlwaysOnManager | undefined; diff --git a/ui/server/services/pilotdeckConfig.js b/ui/server/services/pilotdeckConfig.js index 9560b5ef..235f2a63 100644 --- a/ui/server/services/pilotdeckConfig.js +++ b/ui/server/services/pilotdeckConfig.js @@ -325,6 +325,11 @@ export function buildRuntimeEnv(config) { env.HTTPS_PROXY = proxyUrl; env.https_proxy = proxyUrl; } + const noProxy = typeof normalized.proxy?.noProxy === 'string' ? normalized.proxy.noProxy.trim() : ''; + if (noProxy) { + env.NO_PROXY = noProxy; + env.no_proxy = noProxy; + } if (main) { env.PILOTDECK_API_BASE_URL = main.provider.url || '';