Plan todo 6 - permanent static-only Vercel production deployment
===================================================================

PERMANENT PRODUCTION URL (canonical, not a preview/deployment-hash URL):
  https://first-place-overhaul-todo6.vercel.app

Project: aaron-thapas-projects/first-place-overhaul-todo6 (Vercel account yoyoyonono)
Vercel deployment id: dpl_4ntoeMXMse9exAvRgPZ8cv7M1Bji
Deployment-specific URL: https://first-place-overhaul-todo6-q5kr525ww-aaron-thapas-projects.vercel.app

Aliases (from `npx vercel inspect <deployment-url>`):
  - https://first-place-overhaul-todo6.vercel.app               <- stable canonical alias (used above)
  - https://first-place-overhaul-todo6-aaron-thapas-projects.vercel.app

-------------------------------------------------------------------
1. curl -sI https://first-place-overhaul-todo6.vercel.app
-------------------------------------------------------------------
$ curl -sI https://first-place-overhaul-todo6.vercel.app
HTTP/2 200
accept-ranges: bytes
access-control-allow-origin: *
age: 106
cache-control: public, max-age=0, must-revalidate
content-disposition: inline
content-type: text/html; charset=utf-8
date: Fri, 20 Nov 2026 20:39:41 GMT
etag: "814befdf9365d2ab3e2bfaf2aeab51cb"
last-modified: Fri, 20 Nov 2026 20:37:54 GMT
server: Vercel
strict-transport-security: max-age=63072000; includeSubDomains; preload
x-vercel-cache: HIT
x-vercel-id: iad1::kft6x-1795207181227-c6378209f8b6
content-length: 697

=> HTTP 200 confirmed.

-------------------------------------------------------------------
2. Deploy-log evidence of ZERO serverless functions
-------------------------------------------------------------------
Full remote build log (`npx vercel inspect <deployment-url> --logs`) for the
successful deployment (dpl_4ntoeMXMse9exAvRgPZ8cv7M1Bji):

2026-11-20T20:37:22.187Z  Running build in Washington, D.C., USA (East) - iad1
2026-11-20T20:37:22.188Z  Build machine configuration: 2 cores, 8 GB
2026-11-20T20:37:22.213Z  Retrieving list of deployment files...
2026-11-20T20:37:22.325Z  Previous build caches not available.
2026-11-20T20:37:22.722Z  Downloading 1059 deployment files...
2026-11-20T20:37:25.343Z  Running "vercel build"
2026-11-20T20:37:25.358Z  Vercel CLI 66.2.0
2026-11-20T20:37:26.103Z  Installing dependencies...
2026-11-20T20:37:38.505Z  added 535 packages in 12s
2026-11-20T20:37:40.813Z  vite v8.3.8 building client environment for production...
2026-11-20T20:37:40.826Z  transforming...
2026-11-20T20:37:41.243Z  (check) 292 modules transformed.
2026-11-20T20:37:41.345Z  rendering chunks...
2026-11-20T20:37:41.632Z  computing gzip size...
2026-11-20T20:37:41.649Z  dist/manifest.webmanifest                            0.51 kB
2026-11-20T20:37:41.650Z  dist/index.html                                      0.69 kB
2026-11-20T20:37:41.651Z  dist/assets/index-DbEfal6P.css                      62.67 kB
2026-11-20T20:37:41.651Z  dist/assets/*.js  (10 JS chunk files)
2026-11-20T20:37:41.653Z  (check) built in 838ms
2026-11-20T20:37:43.638Z  PWA v2.0.0 / mode generateSW / precache 20 entries / dist/sw.js, dist/workbox-*.js
2026-11-20T20:37:43.809Z  Build Completed in /vercel/output [18s]
2026-11-20T20:37:43.835Z  Deploying outputs...
2026-11-20T20:37:44.946Z  Deployment completed
status  Ready

`npx vercel inspect <deployment-url>` output:

  Builds
    - .        [0ms]

  Routes
    - ^(?:/((?!api/).*))$      ->      /index.html
    - filesystem

No "Serverless Functions"/"Functions" section appears anywhere in the
inspect output or the build log - the only build step run was
`tsc -b tsconfig.app.json tsconfig.node.json && vite build` (see vercel.json's
buildCommand override) followed by a static asset upload (dist/). Zero
serverless functions were deployed. This confirms the `api/` exclusion
(.vercelignore) took effect.

NOTE on a build-ordering fix: the FIRST deploy attempt (before this one)
failed remotely with:
  error TS18003: No inputs were found in config file '/vercel/path0/tsconfig.api.json'.
  Specified 'include' paths were '["api"]' ...
  Error: [BUILD_UTILS_SPAWN_1] Command "npm run build" exited with 1
because the root package.json "build" script (`tsc -b && vite build`) walks
ALL three referenced tsconfig projects (app, node, api) via tsconfig.json's
project references, and api/ is excluded from the uploaded files by
.vercelignore, so tsconfig.api.json's `"include": ["api"]` found nothing on
the Vercel build machine. Fixed by adding a `buildCommand` override in
vercel.json scoped to THIS deployment only:
  "buildCommand": "tsc -b tsconfig.app.json tsconfig.node.json && vite build"
This does not touch package.json's own "build" script (still `tsc -b && vite build`,
used for local full-repo builds including api/); it is a Vercel-deploy-only
override, consistent with the static-only scope of this deploy.

-------------------------------------------------------------------
3. Browser verification (headless Chromium via Playwright, bundled at
   /home/athapa/.cache/ms-playwright/chromium-1255)
-------------------------------------------------------------------
Visited https://first-place-overhaul-todo6.vercel.app/ :
  - Home grid rendered with BALANCE: 50 (populated, not "--") - proves
    todo 5's auto-seed shipped correctly on the live static deploy.
  - All 13 mini-app tiles rendered (Fair Share, Water Watch, Tunnel Safety,
    Housing, Assembly, Find Family, Health Post, Light Clock, Farms,
    Fair Draw, The Climb, Mentor, Sky).
  - Network/console errors captured: exactly four 404s, all for
    `https://first-place-overhaul-todo6.vercel.app/api/sync` (the excluded,
    absent backend endpoint that trySyncWithBackend() calls on shell mount).
  - DOM body text scanned for any visible error/crash wording: NONE found
    (`/error|failed|crash/i` match against the rendered page = false).
  => trySyncWithBackend() failing against the now-absent /api/sync is a
     confirmed silent, throw-free no-op: no visible error toast/crash,
     app renders and functions normally.
  Screenshot: .omo/evidence/first-place-overhaul/task-6-first-place-overhaul-browser.png

Visited https://first-place-overhaul-todo6.vercel.app/admin :
  - "Load Hollow demo" button clicked.
  - Response text rendered: "Demo data already loaded - no new events
    appended." => idempotency holds on this fresh prod deploy, because
    todo 5's shell-boot auto-seed already ran before any human visited
    /admin.
  - The page's separate "Backend relay: aggregate monitoring view" widget
    (which deliberately calls the backend admin aggregate endpoint, not
    trySyncWithBackend()) shows "Could not load aggregate: aggregate
    endpoint returned 404" - an intentional, labeled, non-crashing error
    message for a read-only monitoring feature that has no function to
    reach on this static-only deploy. This is expected and does not
    affect the app's core signed-event-log/wallet functionality.
  Screenshot: .omo/evidence/first-place-overhaul/task-6-first-place-overhaul-browser-admin.png
