Skip to content

Commit b1332d2

Browse files
bloveclaude
andauthored
ci(ag-ui): bake GOOGLE_MAPS_API_KEY + Map ID into the demo deploy build (#748)
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) <noreply@anthropic.com>
1 parent 2869683 commit b1332d2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,13 @@ jobs:
912912
run: npm ci
913913
- name: Build and assemble ag-ui demo
914914
if: steps.ag_ui_changed.outputs.changed == 'true'
915+
env:
916+
# Baked into the SPA bundle by inject-env at build time. Without the
917+
# key the App-mode map toggle is disabled in prod. The key ships in
918+
# the public bundle (normal for Maps JS) — restrict it by HTTP
919+
# referrer in the Google Cloud console. The Map ID is not a secret.
920+
GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}
921+
GOOGLE_MAPS_MAP_ID: 86d464ea7d5306034fe2a254
915922
run: npx tsx scripts/assemble-ag-ui-demo.ts
916923
- name: Deploy ag-ui demo SPA to Vercel (production)
917924
if: steps.ag_ui_changed.outputs.changed == 'true'

0 commit comments

Comments
 (0)