From b9a28861382130a6a4de82d01522f441b648d570 Mon Sep 17 00:00:00 2001 From: Brian Love Date: Tue, 7 Jul 2026 16:03:56 -0700 Subject: [PATCH] =?UTF-8?q?fix(examples-chat):=20unblock=20canonical=20dem?= =?UTF-8?q?o=20prod=20deploy=20=E2=80=94=20raise=20bundle=20budget=20+=20w?= =?UTF-8?q?ire=20Maps=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The App-mode cockpit (@angular/google-maps + @angular/cdk + map/itinerary) pushed the production initial bundle ~80kB over the 1.5MB budget; only the production config enforces budgets, so dev/e2e passed while the 'Canonical demo → Vercel' job failed at build (frontend never deployed). Raise the initial budget to 1.75MB (warn 1.6MB), matching the feature's weight. Also pass GOOGLE_MAPS_API_KEY + GOOGLE_MAPS_MAP_ID to the canonical demo assemble step (mirroring the ag-ui deploy) so inject-env bakes a keyed bundle and the App-mode toggle is enabled in prod. --- .github/workflows/ci.yml | 8 ++++++++ examples/chat/angular/project.json | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 061827946..e71ac73fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -809,6 +809,14 @@ jobs: cache: npm - run: npm ci - name: Build and assemble canonical demo + env: + # Baked into the SPA bundle by inject-env at build time (assemble-demo.ts + # runs `nx build examples-chat-angular`, whose build target dependsOn + # inject-env). 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-demo.ts - name: Deploy canonical demo to Vercel (production) working-directory: deploy/demo diff --git a/examples/chat/angular/project.json b/examples/chat/angular/project.json index 140dc0e75..a44edeb78 100644 --- a/examples/chat/angular/project.json +++ b/examples/chat/angular/project.json @@ -50,8 +50,8 @@ "budgets": [ { "type": "initial", - "maximumWarning": "500kb", - "maximumError": "1.5mb" + "maximumWarning": "1.6mb", + "maximumError": "1.75mb" }, { "type": "anyComponentStyle", @@ -74,8 +74,8 @@ "budgets": [ { "type": "initial", - "maximumWarning": "500kb", - "maximumError": "1.5mb" + "maximumWarning": "1.6mb", + "maximumError": "1.75mb" }, { "type": "anyComponentStyle",