[Admin] Infra: admin SPA packaging + host serving at /admin
Why
The current /admin is a single static store/admin/index.html. We want a real React app (matching store/console) served at /admin by the existing host worker — no separate worker or DNS (PAGS is a single self-contained monorepo; see epic architecture decision).
Scope
- Create
store/admin/ as a React 19 + TypeScript + Tailwind v4 + Vite app, mirroring the store/console toolchain/build (same design tokens, fonts, dark theme).
- Wire it into the host worker build (
workers/host/build.js → pages.ts) so /admin and /admin/* serve the SPA (client-side routing), replacing the static stub.
- Add the admin app to CI build + deploy (
.github/workflows), same as console.
- Keep
robots: noindex,nofollow.
Acceptance criteria
Relevant code
workers/host/build.js, workers/host/src/pages.ts
store/console/ (reference toolchain: vite.config.ts, package.json, Tailwind v4 setup)
.github/workflows/ (host deploy)
References
- FGS/FAS admin = React SPA served from a CF Worker with Workers Static Assets.
Part of the PAGS Admin Portal epic. Depends on the Foundation issue. Blocks all UI issues.
[Admin] Infra: admin SPA packaging + host serving at /admin
Why
The current
/adminis a single staticstore/admin/index.html. We want a real React app (matchingstore/console) served at/adminby the existinghostworker — no separate worker or DNS (PAGS is a single self-contained monorepo; see epic architecture decision).Scope
store/admin/as a React 19 + TypeScript + Tailwind v4 + Vite app, mirroring thestore/consoletoolchain/build (same design tokens, fonts, dark theme).workers/host/build.js→pages.ts) so/adminand/admin/*serve the SPA (client-side routing), replacing the static stub..github/workflows), same as console.robots: noindex,nofollow.Acceptance criteria
/adminserves the new SPA in prod; deep links (/admin/users) resolve to the SPA.store/admin/index.htmlremoved.Relevant code
workers/host/build.js,workers/host/src/pages.tsstore/console/(reference toolchain:vite.config.ts,package.json, Tailwind v4 setup).github/workflows/(host deploy)References
Part of the PAGS Admin Portal epic. Depends on the Foundation issue. Blocks all UI issues.