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 <cursoragent@cursor.com>
This commit is contained in:
@@ -87,6 +87,8 @@ export async function provisionTheiaWorkspace(
|
|||||||
{ name: 'GITEA_API_URL', value: process.env.GITEA_API_URL ?? 'https://git.vibnai.com' },
|
{ 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
|
// Token lets the startup script clone and push to the project's repo
|
||||||
{ name: 'GITEA_TOKEN', value: process.env.GITEA_API_TOKEN ?? '' },
|
{ 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
|
// 5 minute startup timeout — Theia needs time to initialise
|
||||||
startupProbe: {
|
startupProbe: {
|
||||||
|
|||||||
Reference in New Issue
Block a user