diff options
| author | Mark McDonald <[email protected]> | 2025-06-13 16:32:15 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-13 08:32:15 +0000 |
| commit | ff478781ad3f23e7bbec80e9a20d0f7ee6eda23b (patch) | |
| tree | ee57332c65fa3b6b1a154385edda9076d143ef0a | |
| parent | 7bcc60e99613970b01cd79b09bc5502ef98d381a (diff) | |
Support GOOGLE_API_KEY hoisting in sandbox too (#998)
| -rw-r--r-- | packages/cli/src/utils/sandbox.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/cli/src/utils/sandbox.ts b/packages/cli/src/utils/sandbox.ts index b8386161..74e45136 100644 --- a/packages/cli/src/utils/sandbox.ts +++ b/packages/cli/src/utils/sandbox.ts @@ -535,10 +535,13 @@ export async function start_sandbox(sandbox: string) { const containerName = `${imageName}-${index}`; args.push('--name', containerName, '--hostname', containerName); - // copy GEMINI_API_KEY + // copy GEMINI_API_KEY(s) if (process.env.GEMINI_API_KEY) { args.push('--env', `GEMINI_API_KEY=${process.env.GEMINI_API_KEY}`); } + if (process.env.GOOGLE_API_KEY) { + args.push('--env', `GOOGLE_API_KEY=${process.env.GOOGLE_API_KEY}`); + } // copy GEMINI_MODEL if (process.env.GEMINI_MODEL) { |
