mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-28 07:09:50 +00:00
The cloud API now sits behind one front door (ingress -> gateway -> cloud). api.cloud.hanzo.ai / cloud-api.hanzo.ai / functions.hanzo.ai are redundant aliases routing to the same backend, so migrate clients to api.hanzo.ai. - docs + bot-docs lib/hanzo/client.ts, scripts/update-hanzo-index.ts: search/index/chat-docs default base cloud-api|api.cloud.hanzo.ai -> api.hanzo.ai (RAG paths stay /api/* — served there per cloud AUTH_PUBLIC_PATHS) - cloud landing page.tsx: curl base + request-flow label api.cloud.hanzo.ai -> api.hanzo.ai - functions.mdx (x2): collapse Endpoint+Gateway to one canonical api.hanzo.ai/v1/functions/* - hanzo-openapi.mdx: Cloud endpoint label api.cloud.hanzo.ai -> api.hanzo.ai Non-breaking: the aliases still resolve to the same backend.
18 lines
577 B
TypeScript
18 lines
577 B
TypeScript
export const searchEndpoint =
|
|
process.env.NEXT_PUBLIC_HANZO_SEARCH_ENDPOINT ??
|
|
'https://api.hanzo.ai/api/search-docs?store=bot-docs';
|
|
|
|
export const indexEndpoint =
|
|
process.env.HANZO_SEARCH_INDEX_ENDPOINT ??
|
|
'https://api.hanzo.ai/api/index-docs?store=bot-docs';
|
|
|
|
export const chatEndpoint =
|
|
process.env.NEXT_PUBLIC_HANZO_CHAT_ENDPOINT ??
|
|
'https://api.hanzo.ai/api/chat-docs?store=bot-docs';
|
|
|
|
export const publishableKey =
|
|
process.env.NEXT_PUBLIC_HANZO_SEARCH_KEY ?? 'pk-hanzo-docs-search-2026';
|
|
|
|
export const adminKey =
|
|
process.env.HANZO_SEARCH_ADMIN_KEY ?? '';
|