From cd7725f68b3ec6c34401b6b5e9787b59b3fdfbd9 Mon Sep 17 00:00:00 2001 From: Brian Love Date: Mon, 6 Jul 2026 08:05:47 -0700 Subject: [PATCH] ci(ag-ui): bake GOOGLE_MAPS_API_KEY + Map ID into the demo deploy build The ag-ui demo deploy built with no Maps env, so inject-env wrote an empty key into the bundle (verified: prod ships googleMaps:"") and the App-mode map cockpit is disabled on ag-ui.threadplane.ai. Pass the key from the GOOGLE_MAPS_API_KEY repo secret and inline the (non-secret) Map ID at the assemble step so the SPA builds key-enabled. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75e39b489..061827946 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -912,6 +912,13 @@ jobs: run: npm ci - name: Build and assemble ag-ui demo if: steps.ag_ui_changed.outputs.changed == 'true' + env: + # Baked into the SPA bundle by inject-env at build time. Without the + # key the App-mode map toggle is disabled in prod. The key ships in + # the public bundle (normal for Maps JS) — restrict it by HTTP + # referrer in the Google Cloud console. The Map ID is not a secret. + GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }} + GOOGLE_MAPS_MAP_ID: 86d464ea7d5306034fe2a254 run: npx tsx scripts/assemble-ag-ui-demo.ts - name: Deploy ag-ui demo SPA to Vercel (production) if: steps.ag_ui_changed.outputs.changed == 'true'