Files
feedback-signal/src/env.ts
zooqueen 7b93b1dc64 Signal — product feedback triage inbox (Hanzo starter template)
Two-pane feedback inbox on the canonical Hanzo stack: @hanzo/gui UI,
@hanzo/iam PKCE auth (hanzo.id), @hanzo/base org-scoped data.
Views: inbox (list + detail), item detail (sentiment + theme tags,
triage/archive actions), capture. Base collections: feedback, themes.
2026-07-21 10:34:16 -07:00

21 lines
902 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 — a per-app client provisioned at deploy. */
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'