Files
zeekay c467163edd Ask at hanzo.app/?q=, and sign in to land on Chat at /
Chat is hanzo.app's root now. Every place a question leaves this site
(the header's ask bar, the phone demo, Chat's composer) opens
hanzo.app/?q= through one helper (lib/app ask), answered at once,
signed in or not; it had gone through /chat, one redirect more, and
Chat's composer through a sign-in first. Log in, One Tap and Open
Hanzo Chat sign in with no next=/chat, so the sign-in lands on Chat at
hanzo.app/ instead of /chat.

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk
2026-11-12 19:04:46 -08:00

7 lines
461 B
TypeScript

// The app's origin: chat and the rooms live there; this site is the signed-out hanzo.ai.
export const APP = 'https://hanzo.app';
// A question asked of Hanzo: Chat, at hanzo.app's root, answers it at once, signed in or not.
export const ask = (q: string) => `${APP}/?q=${encodeURIComponent(q)}`;
// Where Hanzo signs in and checks out: hanzo.ai's own pages (the app's sign-in pages and /pay, served here by the edge).
export const SIGNIN = 'https://hanzo.ai';