From 8e6406232d63c8678a153c8993bc87150122aab8 Mon Sep 17 00:00:00 2001 From: Mark Henderson Date: Mon, 23 Feb 2026 11:50:55 -0800 Subject: [PATCH] fix: pass GOOGLE_API_KEY to Cloud Run workspace services Without this, Theia's startup script could not configure Gemini AI features or write the correct settings.json (dark theme, API key). New workspaces now receive GOOGLE_API_KEY from the vibn-frontend env. Co-authored-by: Cursor --- lib/cloud-run-workspace.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cloud-run-workspace.ts b/lib/cloud-run-workspace.ts index 54e1de1..59d1366 100644 --- a/lib/cloud-run-workspace.ts +++ b/lib/cloud-run-workspace.ts @@ -87,6 +87,8 @@ export async function provisionTheiaWorkspace( { name: 'GITEA_API_URL', value: process.env.GITEA_API_URL ?? 'https://git.vibnai.com' }, // Token lets the startup script clone and push to the project's repo { name: 'GITEA_TOKEN', value: process.env.GITEA_API_TOKEN ?? '' }, + // Gemini API key — needed by startup.sh to configure AI features in Theia + { name: 'GOOGLE_API_KEY', value: process.env.GOOGLE_API_KEY ?? '' }, ], // 5 minute startup timeout — Theia needs time to initialise startupProbe: {