ci(ag-ui): bake GOOGLE_MAPS_API_KEY + Map ID into the demo deploy build#748
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @blove's task in 1m 31s —— View job PR Review
This change is correct. The 7-line diff does exactly what it says: scopes Here's the full chain I verified:
No issues found:
One thing to be aware of (already documented in the PR body): if the |
What
The App-mode map cockpit (#747) is invisible on the deployed demo: the
ag-ui-demo-deployjob builds with no Maps env, soinject-envbakes an empty key into the bundle — verified against prod (ag-ui.threadplane.aimain-*.jsshipsgoogleMaps:""), which disables the App-mode toggle.This passes
GOOGLE_MAPS_API_KEY(new repo secret) and the non-secret Map ID (86d464ea7d5306034fe2a254) to the assemble step.Required follow-ups (not in this PR)
gh secret set GOOGLE_MAPS_API_KEYwith the key from the root.env.https://ag-ui.threadplane.ai/*+http://localhost:*. The key ships in the public bundle, so referrer restriction is the security boundary.examples/ag-ui/**changes — the next ag-ui PR to land (e.g. feat(ag-ui): context-aware welcome suggestions (App mode leads with itinerary prompts) #746) will roll the key-enabled bundle out.🤖 Generated with Claude Code