Files
console/package.json
T
zooqueenandHanzo Dev 9da398459e
Hanzo CI/CD / cicd (push) Successful in 4m54s
CI/CD / cicd (push) Successful in 5m24s
deps: iam 0.21.6 — the SDK whose storage default survives prerender
The previous commit dropped console's explicit `storage: sessionStorage` so the
session would be shared across tabs, and the build died on the next push:

  Error occurred prerendering page "/auth/callback"
  ReferenceError: sessionStorage is not defined

`^0.21.2` resolved to a build whose default was the bare global
`config.storage ?? sessionStorage`, evaluated in the IAM constructor. In a
browser that is merely the wrong lifetime; under Next's static export it runs in
Node, where the identifier does not exist at all, so the constructor threw and
the export exited. Passing `sessionStorage` explicitly had been masking it —
the callback page constructs the SDK at module scope, and the value it passed
was the client-side one Next never evaluates on the server.

0.21.6 resolves storage through a guarded probe (`typeof localStorage`, then an
actual write, since privacy modes expose the object and throw on setItem) and
falls back to an in-memory Storage. So prerender gets a real object, the browser
gets localStorage, and neither needs a caller to know which one it is.

The caret already permitted 0.21.6; the lockfile is what pinned 0.21.2, which is
why CI installed the broken one while a local `pnpm install` would not have.
Verified by running the export that failed: 13/13 static pages, /auth/callback
among them.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>
2026-08-03 17:18:58 -07:00

71 lines
2.0 KiB
JSON

{
"name": "@hanzo/console",
"version": "8.5.35",
"packageManager": "pnpm@11.17.0",
"private": true,
"license": "BSD-3-Clause",
"author": "Hanzo AI <dev@hanzo.ai>",
"description": "Hanzo Cloud Console — unified admin console for Hanzo Cloud and all cloud products.",
"scripts": {
"dev": "next dev -p 4000",
"build": "next build",
"build:embed": "node scripts/build-embed.mjs",
"start": "next start -p 4000",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"e2e": "playwright test",
"e2e:headed": "playwright test --headed",
"postinstall": "patch-package"
},
"dependencies": {
"@hanzo/brand": "^1.4.5",
"@hanzo/canvas": "^0.2.1",
"@hanzo/dash": "^0.3.0",
"@hanzo/data": "^1.2.2",
"@hanzo/event": "^0.3.8",
"@hanzo/finance-ui": "~0.1.1",
"@hanzo/gui": "^8.0.0",
"@hanzo/iam": "^0.21.6",
"@hanzo/logo": "^1.0.14",
"@hanzo/ui": "^8.0.38",
"@hanzo/usage": "^0.1.6",
"@hanzogui/config": "^8.0.0",
"@hanzogui/core": "^8.0.0",
"@hanzogui/lucide-icons-2": "^8.0.0",
"@hanzogui/next-theme": "^8.0.0",
"@hanzogui/shell": "^8.0.1",
"@lexical/html": "0.46.0",
"@lexical/link": "0.46.0",
"@lexical/list": "0.46.0",
"@lexical/react": "0.46.0",
"@lexical/rich-text": "0.46.0",
"@lexical/selection": "0.46.0",
"@lexical/utils": "0.46.0",
"@luxfi/logo": "^1.0.1",
"@xyflow/react": "12.11.1",
"@zap-proto/web": "1.0.0",
"@zap-proto/zap": "1.6.0",
"@zooai/logo": "^1.0.2",
"axe-core": "4.12.1",
"ethers": "6.17.0",
"lexical": "0.46.0",
"next": "15.5.19",
"qrcode.react": "4.2.0",
"react": "19.2.7",
"react-dom": "19.2.7",
"react-native-svg": "15.15.5",
"react-native-web": "0.21.2",
"superjson": "2.2.2"
},
"devDependencies": {
"@playwright/test": "^1.61.1",
"@types/node": "22.20.0",
"@types/react": "19.2.17",
"@types/react-dom": "19.2.3",
"patch-package": "^8.0.0",
"react-native": "0.83.9",
"typescript": "^5.9.3",
"vitest": "3.2.4"
}
}