Files
zooqueen f89340860e band-setlist: Setlist — public show & setlist tracker on the Hanzo stack
Gig-poster-brutalist band gig log: browse upcoming/past shows, open a show
to read its ordered setlist, and sign in to log shows + build sets.

- UI: 100% @hanzo/gui primitives (Tamagui longhand), no Tailwind
- Auth: @hanzo/iam PKCE against hanzo.id (VITE_IAM_CLIENT_ID)
- Data: @hanzo/base org-scoped shows / songs / setlist from schema.sql
- Forked from hanzo-starter; identical provider stack, vite.config, deploy contract
2026-07-21 10:39:37 -07:00

22 lines
982 B
TypeScript

/**
* The app's environment contract, in ONE place. Every value has a sensible
* default so the starter runs against live Hanzo (hanzo.id + api.hanzo.ai) with
* zero config; the deploy pipeline overrides them per environment.
*/
const origin = typeof window !== 'undefined' ? window.location.origin : ''
/** OIDC issuer (Hanzo IAM). */
export const IAM_URL = import.meta.env.VITE_HANZO_IAM_URL || 'https://hanzo.id'
/** IAM application (client) id, `<org>-<app>`. Per-app clients are provisioned
* at deploy; the shared `hanzo-app` client is the fallback for local dev. */
export const CLIENT_ID = import.meta.env.VITE_IAM_CLIENT_ID || 'hanzo-app'
/** PKCE redirect URI — this origin's callback route unless overridden. */
export const REDIRECT_URI =
import.meta.env.VITE_HANZO_REDIRECT_URI || `${origin}/auth/callback`
/** Browser-reachable Hanzo Base data plane (IAM-native). */
export const BASE_URL = import.meta.env.VITE_HANZO_BASE_URL || 'https://api.hanzo.ai'