Files
cms/apps/hanzo-demo/package.json
zeekayandHanzo Dev c742ff6764 fix(cms/admin): regenerate importMap + generate it in build (blank-admin)
The committed importMap.js held ONE entry (CollectionCards) — it was never
generated against the real config, so every plugin client component was absent:
the entire lexical editor (20), the multi-tenant admin UI (5), and the S3 upload
handler. At runtime the admin RootProvider could not resolve those client
references, so it rendered an empty tree — a BLANK white page on ALL routes
including /admin/login (RSC flight streamed, client never committed, zero console
errors). Pod logs: "getFromImportMap: CMSComponent not found ...
@hanzo/cms-storage-s3/client#S3ClientUploadHandler ... run generate:importmap".

Fix: regenerate importMap.js (6 -> 64 lines, all client comps) AND wire
`hanzo-cms generate:importmap` into the app build so it can never drift from the
config again. Also corrects generate:types/importmap to the real CLI bin
(hanzo-cms; the fork has no `payload` bin — the old script was a latent ENOENT).
Build green; regeneration is idempotent ("No new imports found").

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-14 18:01:02 -07:00

39 lines
1.3 KiB
JSON

{
"name": "@hanzo/cms-demo",
"version": "1.0.0",
"private": true,
"description": "Reference Hanzo CMS app: Base/SQLite (per-org) + SeaweedFS S3 + IAM SSO + org==tenant + white-label.",
"license": "MIT",
"type": "module",
"scripts": {
"build": "cross-env NODE_OPTIONS=--no-deprecation hanzo-cms generate:importmap && next build --webpack",
"dev": "next dev --webpack",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation hanzo-cms generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation hanzo-cms generate:types",
"start": "next start"
},
"dependencies": {
"@hanzo/cms": "workspace:*",
"@hanzo/cms-auth-iam": "workspace:*",
"@hanzo/cms-db-sqlite": "workspace:*",
"@hanzo/cms-next": "workspace:*",
"@hanzo/cms-plugin-multi-tenant": "workspace:*",
"@hanzo/cms-plugin-whitelabel": "workspace:*",
"@hanzo/cms-richtext-lexical": "workspace:*",
"@hanzo/cms-storage-s3": "workspace:*",
"@hanzo/cms-ui": "workspace:*",
"cross-env": "^7.0.3",
"graphql": "^16.8.1",
"next": "16.2.6",
"react": "19.2.6",
"react-dom": "19.2.6",
"sharp": "0.34.2"
},
"devDependencies": {
"@types/node": "22.19.9",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"typescript": "5.7.3"
}
}