mirror of
https://github.com/hanzoai/id.git
synced 2026-10-26 20:59:52 +00:00
The portal serves account.hanzo.id / account.lux.id — branded account-management pages, IAM access tokens over the OAuth code exchange, redirecting to each brand's login. That is identity UI: same brands, same IAM, same login redirect as apps/web. It had no business being its own repo. It also had a worse problem. It lived in hanzoai/account, which is ALSO the Go module github.com/hanzoai/account — the package that owns the billing-account rule (Account, Payer, Subject) that cloud and commerce both import. One repo, two unrelated codebases, one name: `main` was this Worker, and the Go module survived only on a `go` branch plus its tags. A Go module whose default branch has no go.mod cannot resolve for anything but an explicit tag, which is why it was private-and-pinned rather than importable. Moving the Worker here frees that repo to be the Go module and nothing else. Co-authored-by: Hanzo Dev <[email protected]>
13 lines
343 B
TOML
13 lines
343 B
TOML
name = "account-portal"
|
|
main = "src/worker.js"
|
|
compatibility_date = "2024-01-01"
|
|
workers_dev = false
|
|
|
|
# Custom domains are managed via CF Workers Custom Domains API:
|
|
# account.hanzo.id -> zone hanzo.id
|
|
# account.lux.id -> zone lux.id
|
|
# DNS records and SSL certs are automatically provisioned.
|
|
|
|
[vars]
|
|
IAM_ORIGIN = "https://iam.hanzo.ai"
|