summaryrefslogtreecommitdiff
path: root/packages/cli/src/utils/sandbox.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/utils/sandbox.ts')
-rw-r--r--packages/cli/src/utils/sandbox.ts5
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) {